AddPDF¶
Adds a new PDF file to the repository with HTML content and returns the created FileInfo.
1 | |
Parameters¶
string html
The content of the file in HTML format.
string name
The name of the file.
PDFOptions options optional
Optional PDF conversion options.
Returns¶
The created FileInfo.
Remarks¶
HTML-to-PDF conversion runs synchronously in the script execution. Invalid conversion options or conversion failures raise a script error; the file is added only after conversion succeeds.
The headerHtml and footerHtml parameters specify the content for a single page and may contain the following parameters:
[page]: The current page number.[frompage]: The first page number.[topage]: The total number of pages.[customField]: Other custom properties specified in the options.
Define reusable header HTML for PDF conversion¶
1 2 3 4 5 6 7 8 9 10 | |
Convert HTML into a PDF file¶
1 2 3 | |