officefileapi-devexpress-dot-docs-dot-presentation-dot-presentation-dot-exporttopdf-x28-system-dot-io-dot-stream-x29.md
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
public void ExportToPdf(
Stream stream
)
Public Sub ExportToPdf(
stream As Stream
)
| Name | Type | Description |
|---|---|---|
| stream | Stream |
A stream to which the presentation is exported.
|
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
if (outputFormat == PresentationFormat.Pdf)
presentation.ExportToPdf(resultStream);
else
See Also