Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointPdfConverterExtensions

OfficeIMO.PowerPoint.Pdf

Namespace
OfficeIMO.PowerPoint.Pdf
Assembly
OfficeIMO.PowerPoint.Pdf
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

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 required
path string required
options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeConversionReport
public 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 required
stream System.IO.Stream required
options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeConversionReport
SaveAsPdfAsync 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 required
path string required
options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

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 required
stream System.IO.Stream required
options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

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 required
options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

PdfDocument
public 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 required
options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? required
report OfficeIMO.OfficeConversionReport required
cancellationToken System.Threading.CancellationToken = default optional

Returns

PdfDocument
public 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 required
options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OfficeConversionResult<PdfDocument>>