Back to Devexpress

Presentation.ExportToPdf(Stream) Method

officefileapi-devexpress-dot-docs-dot-presentation-dot-presentation-dot-exporttopdf-x28-system-dot-io-dot-stream-x29.md

latest2.4 KB
Original Source

Presentation.ExportToPdf(Stream) Method

Exports the presentation as a PDF file to the specified stream. The stream should be readable and writable.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public void ExportToPdf(
    Stream stream
)
vb
Public Sub ExportToPdf(
    stream As Stream
)

Parameters

NameTypeDescription
streamStream

A stream to which the presentation is exported.

|

Remarks

Pass the PdfExportOptions object as the ExportToPdf method parameter to specify export options.

For more information, refer to the following help topic: Export Loaded or Generated Presentation with DevExpress Presentation API Library.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExportToPdf(Stream) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

office-file-api-ai-implementation/CS/BusinessObjects/Helpers.cs#L186

csharp
if (outputFormat == PresentationFormat.Pdf)
    presentation.ExportToPdf(resultStream);
else

See Also

Presentation Class

Presentation Members

DevExpress.Docs.Presentation Namespace