PowerPointOpenDocumentConversionExtensions
OfficeIMO.PowerPoint.OpenDocument
Explicit conversions between OfficeIMO PowerPoint and native OpenDocument presentation models.
Inheritance
- object
- PowerPointOpenDocumentConversionExtensions
Methods
public static OfficeConversionReport SaveAsOpenDocument(PowerPointDocument source, string path, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Writes the converted output to a path and returns the conversion report.
Parameters
- source OfficeIMO.PowerPoint.PowerPointDocument
- path string
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic static OfficeConversionReport SaveAsOpenDocument(PowerPointDocument source, Stream stream, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Writes the converted output to a caller-owned stream, which stays open and returns the conversion report.
Parameters
- source OfficeIMO.PowerPoint.PowerPointDocument
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic static async Task<OfficeConversionReport> SaveAsOpenDocumentAsync(PowerPointDocument source, string path, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously writes the converted output to a path and returns the conversion report.
Parameters
- source OfficeIMO.PowerPoint.PowerPointDocument
- path string
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>public static async Task<OfficeConversionReport> SaveAsOpenDocumentAsync(PowerPointDocument source, Stream stream, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously writes the converted output to a caller-owned stream and returns the conversion report.
Parameters
- source OfficeIMO.PowerPoint.PowerPointDocument
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>public static OfficeConversionReport SaveAsPowerPoint(OdpPresentation source, string path, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Writes the converted output to a path and returns the conversion report.
Parameters
- source OfficeIMO.OpenDocument.OdpPresentation
- path string
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic static OfficeConversionReport SaveAsPowerPoint(OdpPresentation source, Stream stream, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Writes the converted output to a caller-owned stream, which stays open and returns the conversion report.
Parameters
- source OfficeIMO.OpenDocument.OdpPresentation
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic static async Task<OfficeConversionReport> SaveAsPowerPointAsync(OdpPresentation source, string path, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously writes the converted output to a path and returns the conversion report.
Parameters
- source OfficeIMO.OpenDocument.OdpPresentation
- path string
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>public static async Task<OfficeConversionReport> SaveAsPowerPointAsync(OdpPresentation source, Stream stream, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously writes the converted output to a caller-owned stream and returns the conversion report.
Parameters
- source OfficeIMO.OpenDocument.OdpPresentation
- stream System.IO.Stream
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>public static OdpPresentation ToOpenDocument(PowerPointDocument source, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Converts a presentation to an in-memory ODP presentation; the LossPolicy option rejects loss.
Parameters
- source OfficeIMO.PowerPoint.PowerPointDocument
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OdpPresentationpublic static OdpPresentation ToOpenDocument(PowerPointDocument source, PowerPointOpenDocumentConversionOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default) #Converts a presentation to an in-memory ODP presentation; the LossPolicy option rejects loss and returns the completed conversion report.
Parameters
- source OfficeIMO.PowerPoint.PowerPointDocument
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions?
- report OfficeIMO.OfficeConversionReport
- cancellationToken System.Threading.CancellationToken = default
Returns
OdpPresentationpublic static Task<OfficeConversionResult<OdpPresentation>> ToOpenDocumentAsync(PowerPointDocument source, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Converts a presentation to an in-memory ODP presentation; the LossPolicy option rejects loss, returning the value and report together.
Parameters
- source OfficeIMO.PowerPoint.PowerPointDocument
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionResult<OdpPresentation>>public static PowerPointDocument ToPowerPoint(OdpPresentation source, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Converts an ODP presentation to an in-memory presentation; the LossPolicy option rejects loss.
Parameters
- source OfficeIMO.OpenDocument.OdpPresentation
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
PowerPointDocumentpublic static PowerPointDocument ToPowerPoint(OdpPresentation source, PowerPointOpenDocumentConversionOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default) #Converts an ODP presentation to an in-memory presentation; the LossPolicy option rejects loss and returns the completed conversion report.
Parameters
- source OfficeIMO.OpenDocument.OdpPresentation
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions?
- report OfficeIMO.OfficeConversionReport
- cancellationToken System.Threading.CancellationToken = default
Returns
PowerPointDocumentpublic static Task<OfficeConversionResult<PowerPointDocument>> ToPowerPointAsync(OdpPresentation source, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default) #Converts an ODP presentation to an in-memory presentation; the LossPolicy option rejects loss, returning the value and report together.
Parameters
- source OfficeIMO.OpenDocument.OdpPresentation
- options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionResult<PowerPointDocument>>