How to: Export a Workbook to PDF

This example demonstrates how to save a workbook in PDF format via the IWorkbook.ExportToPdf method.

using (FileStream pdfFileStream = new FileStream("Documents\\Document_PDF.pdf", FileMode.Create)) {
    workbook.ExportToPdf(pdfFileStream);
}
NOTE

Refer to the Export to PDF document to learn about PDF export features and limitations.

See Also