Collection of PDF functions.
Methods
create
Create a PDF document.
Parameters
htmlBody string | string[]
The HTML to convert to PDF. Can be a single string or an array of strings for multiple pages.
htmlHeader string
(optional) The HTML header to use as header template in the PDF.
htmlFooter string
(optional) The HTML footer to use as footer template in the PDF.
options { pageFormat?: 'A4' | 'Letter' | 'Legal' | 'Ledger' | 'Tabloid' | 'A0' | 'A1' | 'A2' | 'A3' | 'A5' | 'A6', landscape?: Boolean, margin?: { top?: Number, right?: Number, bottom?: Number, left?: Number } }
(optional) The additional PDF options.
Return type
string