Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointOpenDocumentConversionExtensions

OfficeIMO.PowerPoint.OpenDocument

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

Explicit conversions between OfficeIMO PowerPoint and native OpenDocument presentation models.

Inheritance

  • object
  • PowerPointOpenDocumentConversionExtensions

Methods

SaveAsOpenDocument 2 overloads
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 required
path string required
options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

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

Returns

OfficeConversionReport
SaveAsOpenDocumentAsync 2 overloads
public 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 required
path string required
options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

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

Returns

Task<OfficeConversionReport>
SaveAsPowerPoint 2 overloads
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 required
path string required
options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

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

Returns

OfficeConversionReport
SaveAsPowerPointAsync 2 overloads
public 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 required
path string required
options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

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

Returns

Task<OfficeConversionReport>
ToOpenDocument 2 overloads
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 required
options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

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

Returns

OdpPresentation
public 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 required
options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OfficeConversionResult<OdpPresentation>>
ToPowerPoint 2 overloads
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 required
options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

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

Returns

PowerPointDocument
public 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 required
options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OfficeConversionResult<PowerPointDocument>>