# OdpPdfConversionExtensions

Direct, loss-aware ODP to PDF conversion through the PowerPoint semantic and PDF engines.

Class 

`OfficeIMO.OpenDocument.Odp.Pdf`

**Namespace**

`OfficeIMO.OpenDocument.Odp.Pdf`

**Assembly**

`OfficeIMO.OpenDocument.Odp.Pdf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OdpPdfConversionExtensions.Conversion.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L20)

**Modifiers**

static

Direct, loss-aware ODP to PDF conversion through the PowerPoint semantic and PDF engines.

## Inheritance

- object
- OdpPdfConversionExtensions

Filter members 

Show inherited

## Methods

SaveAsOdp 4 overloads

`public static OfficeConversionReport SaveAsOdp(PdfDocument source, string path, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasodp-officeimo-pdf-pdfdocument-string-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:144](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L144)

Reconstructs and saves an Odp file from an opened PDF.

Parameters

**source OfficeIMO.Pdf.PdfDocument required**

**path string required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OfficeConversionReport`

`public static OfficeConversionReport SaveAsOdp(PdfDocument source, Stream stream, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasodp-officeimo-pdf-pdfdocument-io-stream-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L154)

Reconstructs an Odp document from an opened PDF into a caller-owned stream.

Parameters

**source OfficeIMO.Pdf.PdfDocument required**

**stream System.IO.Stream required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OfficeConversionReport`

`public static OfficeConversionReport SaveAsOdp(PdfDocumentReadResult source, string path, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasodp-officeimo-pdf-pdfdocumentreadresult-string-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:221](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L221)

Reconstructs and saves an Odp file from a logical PDF model.

Parameters

**source OfficeIMO.Pdf.PdfDocumentReadResult required**

**path string required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OfficeConversionReport`

`public static OfficeConversionReport SaveAsOdp(PdfDocumentReadResult source, Stream stream, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasodp-officeimo-pdf-pdfdocumentreadresult-io-stream-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:231](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L231)

Reconstructs an Odp document from a logical PDF model into a caller-owned stream.

Parameters

**source OfficeIMO.Pdf.PdfDocumentReadResult required**

**stream System.IO.Stream required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OfficeConversionReport`

SaveAsOdpAsync 4 overloads

`public static async Task<OfficeConversionReport> SaveAsOdpAsync(PdfDocument source, string path, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasodpasync-officeimo-pdf-pdfdocument-string-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

Asynchronously reconstructs and saves an Odp file from an opened PDF.

Parameters

**source OfficeIMO.Pdf.PdfDocument required**

**path string required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionReport>`

`public static async Task<OfficeConversionReport> SaveAsOdpAsync(PdfDocument source, Stream stream, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasodpasync-officeimo-pdf-pdfdocument-io-stream-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

Asynchronously reconstructs an Odp document from an opened PDF into a caller-owned stream.

Parameters

**source OfficeIMO.Pdf.PdfDocument required**

**stream System.IO.Stream required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionReport>`

`public static async Task<OfficeConversionReport> SaveAsOdpAsync(PdfDocumentReadResult source, string path, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasodpasync-officeimo-pdf-pdfdocumentreadresult-string-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

Asynchronously reconstructs and saves an Odp file from a logical PDF model.

Parameters

**source OfficeIMO.Pdf.PdfDocumentReadResult required**

**path string required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionReport>`

`public static async Task<OfficeConversionReport> SaveAsOdpAsync(PdfDocumentReadResult source, Stream stream, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasodpasync-officeimo-pdf-pdfdocumentreadresult-io-stream-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

Asynchronously reconstructs an Odp document from a logical PDF model into a caller-owned stream.

Parameters

**source OfficeIMO.Pdf.PdfDocumentReadResult required**

**stream System.IO.Stream required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionReport>`

SaveAsPdf 2 overloads

`public static OfficeConversionReport SaveAsPdf(OdpPresentation source, string path, OdpPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspdf-officeimo-opendocument-odppresentation-string-officeimo-opendocument-odp-pdf-odppdfexportoptions-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L49)

Writes the OpenDocument presentation as a PDF file and returns the complete conversion report.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**path string required**

**options OfficeIMO.OpenDocument.Odp.Pdf.OdpPdfExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OfficeConversionReport`

`public static OfficeConversionReport SaveAsPdf(OdpPresentation source, Stream stream, OdpPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspdf-officeimo-opendocument-odppresentation-io-stream-officeimo-opendocument-odp-pdf-odppdfexportoptions-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L63)

Writes the OpenDocument presentation as PDF to a caller-owned stream and returns the complete conversion report.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**stream System.IO.Stream required**

**options OfficeIMO.OpenDocument.Odp.Pdf.OdpPdfExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OfficeConversionReport`

SaveAsPdfAsync 2 overloads

`public static async Task<OfficeConversionReport> SaveAsPdfAsync(OdpPresentation source, string path, OdpPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspdfasync-officeimo-opendocument-odppresentation-string-officeimo-opendocument-odp-pdf-odppdfexportoptions-threading-cancellationtoken)

Asynchronously writes the OpenDocument presentation as a PDF file and returns the complete conversion report.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**path string required**

**options OfficeIMO.OpenDocument.Odp.Pdf.OdpPdfExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionReport>`

`public static async Task<OfficeConversionReport> SaveAsPdfAsync(OdpPresentation source, Stream stream, OdpPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspdfasync-officeimo-opendocument-odppresentation-io-stream-officeimo-opendocument-odp-pdf-odppdfexportoptions-threading-cancellationtoken)

Asynchronously writes the OpenDocument presentation as PDF to a caller-owned stream and returns the complete conversion report.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**stream System.IO.Stream required**

**options OfficeIMO.OpenDocument.Odp.Pdf.OdpPdfExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionReport>`

ToOdp 4 overloads

`public static OdpPresentation ToOdp(PdfDocument source, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-toodp-officeimo-pdf-pdfdocument-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:115](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L115)

Reconstructs an Odp document from an opened PDF.

Parameters

**source OfficeIMO.Pdf.PdfDocument required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OdpPresentation`

`public static OdpPresentation ToOdp(PdfDocument source, PdfOdpExportOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default)` [#](#method-toodp-officeimo-pdf-pdfdocument-officeimo-opendocument-odp-pdf-pdfodpexportoptions-officeimo-officeconversionreport-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L121)

Reconstructs an Odp document from an opened PDF and returns the report of both stages.

Parameters

**source OfficeIMO.Pdf.PdfDocument required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? required**

**report OfficeIMO.OfficeConversionReport required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OdpPresentation`

`public static OdpPresentation ToOdp(PdfDocumentReadResult source, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-toodp-officeimo-pdf-pdfdocumentreadresult-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:192](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L192)

Reconstructs an Odp document from a logical PDF model.

Parameters

**source OfficeIMO.Pdf.PdfDocumentReadResult required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OdpPresentation`

`public static OdpPresentation ToOdp(PdfDocumentReadResult source, PdfOdpExportOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default)` [#](#method-toodp-officeimo-pdf-pdfdocumentreadresult-officeimo-opendocument-odp-pdf-pdfodpexportoptions-officeimo-officeconversionreport-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:198](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L198)

Reconstructs an Odp document from a logical PDF model and returns the report of both stages.

Parameters

**source OfficeIMO.Pdf.PdfDocumentReadResult required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? required**

**report OfficeIMO.OfficeConversionReport required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OdpPresentation`

ToOdpAsync 2 overloads

`public static async Task<OfficeConversionResult<OdpPresentation>> ToOdpAsync(PdfDocument source, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-toodpasync-officeimo-pdf-pdfdocument-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

Reconstructs an Odp document from an opened PDF, returning the model and report together.

Parameters

**source OfficeIMO.Pdf.PdfDocument required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionResult<OdpPresentation>>`

`public static async Task<OfficeConversionResult<OdpPresentation>> ToOdpAsync(PdfDocumentReadResult source, PdfOdpExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-toodpasync-officeimo-pdf-pdfdocumentreadresult-officeimo-opendocument-odp-pdf-pdfodpexportoptions-threading-cancellationtoken)

Reconstructs an Odp document from a logical PDF model, returning the model and report together.

Parameters

**source OfficeIMO.Pdf.PdfDocumentReadResult required**

**options OfficeIMO.OpenDocument.Odp.Pdf.PdfOdpExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionResult<OdpPresentation>>`

ToPdf 2 overloads

`public static PdfDocument ToPdf(OdpPresentation source, OdpPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-topdf-officeimo-opendocument-odppresentation-officeimo-opendocument-odp-pdf-odppdfexportoptions-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L20)

Converts the OpenDocument presentation to a PDF model.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**options OfficeIMO.OpenDocument.Odp.Pdf.OdpPdfExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfDocument`

`public static PdfDocument ToPdf(OdpPresentation source, OdpPdfExportOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default)` [#](#method-topdf-officeimo-opendocument-odppresentation-officeimo-opendocument-odp-pdf-odppdfexportoptions-officeimo-officeconversionreport-threading-cancellationtoken)

[OdpPdfConversionExtensions.Conversion.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.OpenDocument.Odp.Pdf/OdpPdfConversionExtensions.Conversion.cs#L25)

Converts the OpenDocument presentation and returns its completed conversion findings.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**options OfficeIMO.OpenDocument.Odp.Pdf.OdpPdfExportOptions? required**

**report OfficeIMO.OfficeConversionReport required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`PdfDocument`

`public static async Task<OfficeConversionResult<PdfDocument>> ToPdfAsync(OdpPresentation source, OdpPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-topdfasync-officeimo-opendocument-odppresentation-officeimo-opendocument-odp-pdf-odppdfexportoptions-threading-cancellationtoken)

Converts the OpenDocument presentation, returning the model and report together.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**options OfficeIMO.OpenDocument.Odp.Pdf.OdpPdfExportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeConversionResult<PdfDocument>>`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:C66F4D556D081D862C886C4C84C77775F515C3ABD89B83FFF5DB25EF59AD7903 -->
