PdfProps
pdf-author String
The author of the PDF document.
pdf-creator String
The creator of the PDF document.
pdf-date Date
The date when the PDF document is created. Defaults to new Date().
pdf-force-proxy Boolean
If pdf-force-proxy
is set to true
, the content will be forwarded to proxyURL even if the browser supports saving files locally.
pdf-file-name String
Specifies the file name of the exported PDF file.
pdf-keywords String
Specifies the keywords of the exported PDF file.
pdf-landscape Boolean
Setting pdf-landscape
to true
reverses the paper dimensions.
pdf-margin-bottom Number | String
The bottom margin. Numbers are considered as pt
units.
pdf-margin-left Number | String
The left margin. Numbers are considered as pt
units.
pdf-margin-right Number | String
The right margin. Numbers are considered as pt
units.
pdf-margin-top Number | String
The top margin. Numbers are considered as pt
units.
pdf-paper-size String | Array
Specifies the paper size of the PDF document. The default auto
means that the paper size is determined by the content.
The supported values are:
-
A predefined size—
A4
,A3
, and others. -
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 units are:
mm
cm
in
pt
pdf-proxy-url String
The 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. Such browsers are IE version 9 and lower and Safari. The implementation of the server-side proxy is your responsibility.
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.
The proxy has to return the decoded file with having the Content-Disposition
header set.
pdf-proxy-target String
A 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, the proxy has to set the Content-Disposition
header to inline; filename=<fileName.pdf>
.
pdf-subject String
Sets the subject of the PDF file.
pdf-title String
Sets the title of the PDF file.