Configures the PDF export settings of the Spreadsheet.
Objectpdf.area
StringThe area that will be exported.
The supported values are:
workbook- Exports the full workbook, including all sheets.sheet- Exports the active sheet.selection- Exports the selected area on the active sheet.
pdf.author
StringThe author of the PDF document.
Default: null
pdf.autoPrint
BooleanSpecifies if the Print dialog should be opened immediately after loading the document.
Note: Some PDF Readers/Viewers will not allow opening the Print Preview by default, it might be necessary to configure the corresponding add-on or application.
Default: false
pdf.creator
StringThe creator of the PDF document.
Default: "Kendo UI PDF Generator"
pdf.date
DateThe date when the PDF document is created. Defaults to new Date().
pdf.fileName
StringSpecifies the file name of the exported PDF file.
Default: "Export.pdf"
pdf.fitWidth
BooleanIndicates whether to fit the content of the Spreadsheet to the width of the page.
Default: false
pdf.forceProxy
BooleanIf set to true, the content will be forwarded to proxyURL even if the browser supports the saving of files locally.
Default: false
pdf.guidelines
BooleanIndicates whether to export the cell guidelines.
Default: false
pdf.hCenter
BooleanIndicates whether to center the content horizontally. For more information, refer to vCenter.
Default: false
pdf.jpegQuality
NumberSpecifies the quality of the images within the exported file, from 0 to 1.
Default: 0.92
pdf.keepPNG
BooleanIf set to true all PNG images contained in the exported file will be kept in PNG format.
Default: false
pdf.keywords
StringSpecifies the keywords of the exported PDF file.
Default: null
pdf.landscape
BooleanIf set to true, reverses the paper dimensions if that width is needed as the larger edge.
Default: true
pdf.margin
ObjectSpecifies the margins of the page (numbers or strings with units).
The supported values are:
mmcminpt(default)
pdf.paperSize
String|ArraySpecifies the paper size of the PDF document. The default auto setting means that the paper size is determined by the content.
The size of the content in pixels will match the size of the output in points (1 pixel = 1/72 inch).
The supported values are:
- A predefined size -
A4,A3, and so on. - An array of two numbers which specify the width and height in points (1pt = 1/72in).
- An array of two strings which specify the width and height in units. The supported values are
mm,cm,in, andpt.
Default: "auto"
pdf.proxyTarget
StringA name or keyword which indicates where to display the document that is returned from the proxy. To display the document in a new window or iframe, set the proxy Content-Disposition header to inline; filename="<fileName.pdf>".
Default: "_self"
pdf.proxyURL
StringThe URL of the server side proxy which will stream the file to the end user. A proxy will be used when the browser is not capable of saving files locally, for example, Internet Explorer 9 and Safari. The developer is responsible for implementing the server-side proxy. The proxy will return the decoded file with the Content-Disposition header set to attachment; filename="<fileName.pdf>".
The proxy will receive a POST request with the following parameters in the request body:
contentType- The MIME type of the file.base64- The base-64 encoded file content.fileName- The file name as requested by the caller.
Default: null
pdf.subject
StringSets the subject of the PDF file.
Default: null
pdf.title
StringSets the title of the PDF file.
Default: null
pdf.vCenter
BooleanIndicates whether to center the content vertically. For more information, refer to hCenter.
Default: false