API Reference
PowerPointPdfConverterExtensions
Converts structured logical PDF tables into PowerPoint tables.
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
- arg1 OfficeIMO.PowerPoint.PowerPointPresentation
- arg2 System.String
- arg3 OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions = null
- arg4 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
- arg1 OfficeIMO.PowerPoint.PowerPointPresentation
- arg2 System.IO.Stream
- arg3 OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions = null
- arg4 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
- arg1 OfficeIMO.PowerPoint.PowerPointPresentation
- arg2 System.String
- arg3 OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions = null
- arg4 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
- arg1 OfficeIMO.PowerPoint.PowerPointPresentation
- arg2 System.IO.Stream
- arg3 OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions = null
- arg4 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
- arg1 OfficeIMO.PowerPoint.PowerPointPresentation
- arg2 System.String
- arg3 OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions = null
- arg4 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
- arg1 OfficeIMO.PowerPoint.PowerPointPresentation
- arg2 System.IO.Stream
- arg3 OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions = null
- arg4 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
- arg1 OfficeIMO.PowerPoint.PowerPointPresentation
- arg2 System.String
- arg3 OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions = null
- arg4 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
- arg1 OfficeIMO.PowerPoint.PowerPointPresentation
- arg2 System.IO.Stream
- arg3 OfficeIMO.PowerPoint.Pdf.PowerPointToPdfOptions = null
- arg4 System.Threading.CancellationToken = default
public static OfficeOutputResult<PdfPowerPointConversionReport> SaveAsPowerPoint(PdfDocument document, String presentationPath, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #OfficeOutputResult<PdfPowerPointConversionReport>Converts an opened PDF and saves the PowerPoint presentation to a file.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 System.String
- arg3 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg4 System.Threading.CancellationToken = default
public static OfficeOutputResult<PdfPowerPointConversionReport> SaveAsPowerPoint(PdfDocument document, Stream presentationStream, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #OfficeOutputResult<PdfPowerPointConversionReport>Converts an opened PDF and saves the PowerPoint presentation to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 System.IO.Stream
- arg3 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg4 System.Threading.CancellationToken = default
public static OfficeOutputResult<PdfPowerPointConversionReport> SaveAsPowerPoint(PdfDocumentReadResult document, String presentationPath, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #OfficeOutputResult<PdfPowerPointConversionReport>Imports logical PDF tables into a new PowerPoint presentation at presentationPath.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 System.String
- arg3 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg4 System.Threading.CancellationToken = default
public static OfficeOutputResult<PdfPowerPointConversionReport> SaveAsPowerPoint(PdfDocumentReadResult document, Stream presentationStream, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #OfficeOutputResult<PdfPowerPointConversionReport>Imports logical PDF tables into a PowerPoint presentation written to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 System.IO.Stream
- arg3 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg4 System.Threading.CancellationToken = default
public static async Task<OfficeOutputResult<PdfPowerPointConversionReport>> SaveAsPowerPointAsync(PdfDocument document, String presentationPath, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #Task<OfficeOutputResult<PdfPowerPointConversionReport>>Converts an opened PDF and asynchronously saves the PowerPoint presentation to a file.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 System.String
- arg3 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg4 System.Threading.CancellationToken = default
public static async Task<OfficeOutputResult<PdfPowerPointConversionReport>> SaveAsPowerPointAsync(PdfDocument document, Stream presentationStream, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #Task<OfficeOutputResult<PdfPowerPointConversionReport>>Converts an opened PDF and asynchronously saves the PowerPoint presentation to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 System.IO.Stream
- arg3 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg4 System.Threading.CancellationToken = default
public static async Task<OfficeOutputResult<PdfPowerPointConversionReport>> SaveAsPowerPointAsync(PdfDocumentReadResult document, String presentationPath, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #Task<OfficeOutputResult<PdfPowerPointConversionReport>>Asynchronously imports logical PDF tables into a PowerPoint presentation written to a file.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 System.String
- arg3 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg4 System.Threading.CancellationToken = default
public static async Task<OfficeOutputResult<PdfPowerPointConversionReport>> SaveAsPowerPointAsync(PdfDocumentReadResult document, Stream presentationStream, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #Task<OfficeOutputResult<PdfPowerPointConversionReport>>Asynchronously imports logical PDF tables into a PowerPoint presentation written to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 System.IO.Stream
- arg3 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg4 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
public static PowerPointPresentation ToPowerPointPresentation(PdfDocument document, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #PowerPointPresentationConverts an opened PDF into a PowerPoint presentation.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg3 System.Threading.CancellationToken = default
public static PowerPointPresentation ToPowerPointPresentation(PdfDocumentReadResult document, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #PowerPointPresentationImports logical PDF tables into a new editable PowerPoint presentation.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg3 System.Threading.CancellationToken = default
public static PdfPowerPointConversionResult ToPowerPointPresentationResult(PdfDocument document, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #PdfPowerPointConversionResultConverts an opened PDF into a PowerPoint presentation with conversion diagnostics.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg3 System.Threading.CancellationToken = default
public static PdfPowerPointConversionResult ToPowerPointPresentationResult(PdfDocumentReadResult document, PdfToPowerPointOptions options = null, CancellationToken cancellationToken = default) #PdfPowerPointConversionResultImports logical PDF tables into an editable PowerPoint presentation plus an explicit table-scope report.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 OfficeIMO.PowerPoint.Pdf.PdfToPowerPointOptions = null
- arg3 System.Threading.CancellationToken = default
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object