Class DocumentPdfExporter
Extension methods for exporting a Document to PDF via DRIT.Pdf.
Inherited Members
Namespace: DRIT.Document.Export.Pdf
Assembly: DRIT.Document.dll
Syntax
public static class DocumentPdfExporter
Methods
SaveAsPdf(Document, Stream, DocumentPdfSaveOptions?)
Writes the document as PDF to stream.
The stream is left open; the caller is responsible for disposing it.
Declaration
public static void SaveAsPdf(this Document document, Stream stream, DocumentPdfSaveOptions? options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Document | document | |
| Stream | stream | |
| DocumentPdfSaveOptions | options |
SaveAsPdf(Document, string, DocumentPdfSaveOptions?)
Saves the document as a PDF file at filePath.
Any existing file is overwritten.
Declaration
public static void SaveAsPdf(this Document document, string filePath, DocumentPdfSaveOptions? options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Document | document | |
| string | filePath | |
| DocumentPdfSaveOptions | options |