HotXLS Docs

SaveAsPDF method

Exports every visible worksheet into a single PDF document, skipping hidden and chart sheets

Syntax

function SaveAsPDF(const FileName: WideString): Integer;

Example

The export honours the print area, paper size, orientation and margins of each worksheet, and returns 1 on success
TXLSPDFExport.CreatePaginationModel exposes the exact logical pages that PDF output uses, for print preview, custom canvas rendering or EMF export
Workbook.SaveAsPDF('Workbook.pdf');