The password needed to open the PDF. Optional.
Setting this generates a diagonal custom watermark on every page in the PDF file. Optional.
Only for HTML to PDF. Page width in px, mm, cm, in. No unit means px. Optional.
Only for HTML to PDF. Page height in px, mm, cm, in. No unit means px. Optional.
If you want your output to have even pages, for example printing on both sides after merging, you can set this to be true. Optional.
Merge each given document making even paged. Optional.
The password needed to modify the PDF. Optional.
Bit field explained in the PDF specs in table 3.20 in section 3.5.2, should be given as an integer. More info. Optional.
Locks / flattens the forms in the PDF. Optional.
Repeats the output pdf for the given number of times. Optional.
Only for HTML to PDF. Margin in px. Returns either a dict containing: { 'top': int, 'bottom': int, 'left': int, 'right': int } or just an int to be used on all sides. Optional.
Only for HTML to PDF. If True: the orientation of the output file is landscape; else portrait (default). Optional.
Only for HTML to PDF. The page format: 'a4' (default) or 'letter'. Optional.
If True: instead of returning back a zip file for multiple output, merge it. Optional.
Signing certificate for the output PDF (pkcs #12 .p12/.pfx) as a base64 string, URL, FTP location or a server path. The function readFileAsBase64() from file_utils.ts can be used to read local .p12 or .pfx file as base64. Optional.
Identify the form fields in a PDF-form by filling the name of each field into the respective field. Optional.
You can specify to split a PDF in separate files. You will get one file per page in a zip file. Optional.
The dict representation of these PDF options.
the dict representation of these PDF options
The page orientation, portrait or landscape.
The page orientation, portrait or landscape.
Set page margin. Either set the position for all margin positions (if position is None) or set a specific one.
page margin in px
'all', 'top', 'bottom', 'left' or 'right'; optional
Setter for the page orientation.
the page orientation
Generated using TypeDoc
Class of optional PDF options. The properties of this class define all possible PDF output options. All of them are optional, which is why passing an instance of this class in an OutputConfig is also optional.