SpreadJS 13
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}.
The options for export PDF.
The name of the application (for example, Adobe FrameMaker\xae) that created the original document from which it was converted.
The document\u2019s title.
The name of the person who created the document.
Keywords associated with the document.
The subject of the document.
The sheet index. If the sheet index is ignored, exports all visible sheets.
In This Topic
    savePDF Method
    In This Topic
    Exports the specified sheet to PDF.
    Syntax
    var instance = new GC.Spread.Sheets.Workbook(host,
                                                options,
                                                options.sheetCount,
                                                options.font,
                                                options.allowUserDragMerge,
                                                options.allowUserDragDrop,
                                                options.allowUserDragFill,
                                                options.allowUserZoom,
                                                options.allowUserResize,
                                                options.allowUndo,
                                                options.allowSheetReorder,
                                                options.allowContextMenu,
                                                options.allowUserDeselect,
                                                options.defaultDragFillType,
                                                options.showDragFillSmartTag,
                                                options.showHorizontalScrollbar,
                                                options.showVerticalScrollbar,
                                                options.scrollbarShowMax,
                                                options.scrollbarMaxAlign,
                                                options.tabStripVisible,
                                                options.tabStripRatio,
                                                options.tabEditable,
                                                options.newTabVisible,
                                                options.tabNavigationVisible,
                                                options.cutCopyIndicatorVisible,
                                                options.cutCopyIndicatorBorderColor,
                                                options.backColor,
                                                options.backgroundImage,
                                                options.backgroundImageLayout,
                                                options.grayAreaBackColor,
                                                options.showResizeTip,
                                                options.showDragDropTip,
                                                options.showDragFillTip,
                                                options.showScrollTip,
                                                options.scrollIgnoreHidden,
                                                options.highlightInvalidData,
                                                options.useTouchLayout,
                                                options.hideSelection,
                                                options.resizeZeroIndicator,
                                                options.allowUserEditFormula,
                                                options.enableFormulaTextbox,
                                                options.autoFitType,
                                                options.referenceStyle,
                                                options.calcOnDemand,
                                                options.allowCopyPasteExcelStyle,
                                                options.allowExtendPasteRange,
                                                options.copyPasteHeaderOptions,
                                                options.scrollByPixel,
                                                options.scrollPixel,
                                                options.allowAutoCreateHyperlink,
                                                options.columnResizeMode,
                                                options.rowResizeMode,
                                                options.customList,
                                                options.scrollbarAppearance);
    var value; // Type: any
    value = instance.savePDF(                                            successCallback,
                                                errorCallback,
                                                options,
                                                options.creator,
                                                options.title,
                                                options.author,
                                                options.keywords,
                                                options.subject,
                                                sheetIndex);
    function savePDF( 
       successCallback : function,
       errorCallback : function,
       (optional) options : Object,
       (optional) options.creator : string,
       (optional) options.title : string,
       (optional) options.author : string,
       (optional) options.keywords : string,
       (optional) options.subject : string,
       sheetIndex : number
    ) : 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}.
    options
    The options for export PDF.
    options.creator
    The name of the application (for example, Adobe FrameMaker\xae) that created the original document from which it was converted.
    options.title
    The document\u2019s title.
    options.author
    The name of the person who created the document.
    options.keywords
    Keywords associated with the document.
    options.subject
    The subject of the document.
    sheetIndex
    The sheet index. If the sheet index is ignored, exports all visible sheets.
    See Also

    Reference

    Workbook type