Spread.Sheets Documentation
Custom PDF Export
Spread.Sheets Documentation > Developer's Guide > Managing Data > Exporting to PDF > Custom PDF Export

The savePDF method of the Workbook class can be used to perform the Export to PDF operation while working with spreadsheets.

In Spread.Sheets, users can perform custom PDF export according to the print settings specified in the workbook using the printInfo object. For each sheet, users can set detailed options by specifying the sheet printInfo options.

Using Code

This example shows how to use the printInfo object to set detailed option for custom PDF export.

JavaScript
Copy Code
var sheet = spread.sheets[0];
var printInfo = sheet.printInfo();
printInfo.showGridLine(false);
printInfo.showRowHeader(GC.Spread.Sheets.Print.PrintVisibilityType.show);
printInfo.showColumnHeader(GC.Spread.Sheets.Print.PrintVisibilityType.show);