Class
PowerPointPdfConverterExtensions
OfficeIMO.PowerPoint.Pdf
First-party PowerPoint presentation to PDF conversion helpers.
Inheritance
- object
- PowerPointPdfConverterExtensions
Methods
SaveAsPdf 2 overloads
public static OfficeConversionReport SaveAsPdf(PowerPointDocument presentation, string path, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default) #Writes a PDF file and returns the complete conversion report.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointDocument
- path string
- options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic static OfficeConversionReport SaveAsPdf(PowerPointDocument presentation, Stream stream, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default) #Writes PDF to a caller-owned stream and returns the complete conversion report.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointDocument
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportSaveAsPdfAsync 2 overloads
public static async Task<OfficeConversionReport> SaveAsPdfAsync(PowerPointDocument presentation, string path, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously writes a PDF file and returns the complete conversion report.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointDocument
- path string
- options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>public static async Task<OfficeConversionReport> SaveAsPdfAsync(PowerPointDocument presentation, Stream stream, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously writes PDF to a caller-owned stream and returns its conversion report.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointDocument
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>ToPdf 2 overloads
public static PdfDocument ToPdf(PowerPointDocument presentation, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default) #Converts the source document to a PDF model.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointDocument
- options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic static PdfDocument ToPdf(PowerPointDocument presentation, PowerPointPdfExportOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default) #Converts the source document and returns its completed conversion findings.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointDocument
- options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions?
- report OfficeIMO.OfficeConversionReport
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic static async Task<OfficeConversionResult<PdfDocument>> ToPdfAsync(PowerPointDocument presentation, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default) #Converts the source document, returning the model and report together.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointDocument
- options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionResult<PdfDocument>>