SpreadJS Documentation
savePDF Method
GC.Spread.Sheets Namespace > Workbook type : savePDF Method
Call this function after successfully export. function (blob) {}.
Call this function if an error occurs. The exception parameter object structure { errorCode: GC.Spread.Sheets.PDF.ErrorCode, errorMessage: string}.
Exports the specified sheet to PDF.
Syntax
var instance = new GC.Spread.Sheets.Workbook(host);
var value; // Type: any
value = instance.savePDF(successCallback, errorCallback);
function savePDF( 
   successCallback : any,
   errorCallback : any
) : any;

Parameters

successCallback
Call this function after successfully export. function (blob) {}.
errorCallback
Call this function if an error occurs. The exception parameter object structure { errorCode: GC.Spread.Sheets.PDF.ErrorCode, errorMessage: string}.
See Also

Reference

Workbook type