API Reference
PowerPointPdfConverterExtensions
First-party PowerPoint presentation to PDF conversion helpers.
Inheritance
- Object
- PowerPointPdfConverterExtensions
Methods
public static PdfSaveResult SaveAsPdf(PowerPointPresentation presentation, String path, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #PdfSaveResultSaves a PowerPoint presentation as a PDF file.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- path System.String
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static PdfSaveResult SaveAsPdf(PowerPointPresentation presentation, Stream stream, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #PdfSaveResultWrites a PowerPoint presentation as PDF to a stream.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static async Task<PdfSaveResult> SaveAsPdfAsync(PowerPointPresentation presentation, String path, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #Task<PdfSaveResult>Converts synchronously, then asynchronously saves a PowerPoint presentation PDF at the specified path.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- path System.String
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static async Task<PdfSaveResult> SaveAsPdfAsync(PowerPointPresentation presentation, Stream stream, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #Task<PdfSaveResult>Converts synchronously, then asynchronously saves a PowerPoint presentation PDF to a caller-owned stream.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static PdfSaveResult SaveAsPdfResult(PowerPointPresentation presentation, String path, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #PdfSaveResultAttempts to save a PowerPoint presentation as a PDF file and returns output diagnostics instead of throwing.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- path System.String
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static PdfSaveResult SaveAsPdfResult(PowerPointPresentation presentation, Stream stream, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #PdfSaveResultAttempts to write a PowerPoint presentation as PDF to a stream and returns output diagnostics instead of throwing.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static async Task<PdfSaveResult> SaveAsPdfResultAsync(PowerPointPresentation presentation, String path, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #Task<PdfSaveResult>Attempts to asynchronously save a PowerPoint presentation as PDF at the specified path.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- path System.String
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static async Task<PdfSaveResult> SaveAsPdfResultAsync(PowerPointPresentation presentation, Stream stream, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #Task<PdfSaveResult>Attempts to asynchronously save a PowerPoint presentation as PDF to a caller-owned stream.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static Byte[] ToPdfBytes(PowerPointPresentation presentation, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #Byte[]Converts a PowerPoint presentation to PDF bytes.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Examples
byte[] pdf = presentation.ToPdfBytes();public static PdfDocument ToPdfDocument(PowerPointPresentation presentation, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #PdfDocumentConverts a PowerPoint presentation to a first-party OfficeIMO PDF document model.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static PdfDocumentConversionResult ToPdfDocumentResult(PowerPointPresentation presentation, PowerPointToPdfOptions? options = null, CancellationToken cancellationToken = default) #PdfDocumentConversionResultConverts a PowerPoint presentation to a PDF document and returns conversion diagnostics with it.
Parameters
- presentation OfficeIMO.PowerPoint.PowerPointPresentation
- options OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?