We added the following methods.
Header&Footer related
method: setHeaderFooterPageExcludeList(exclist)
html: header_footer_page_exclude_list
A comma seperated list of physical page numbers on which the header a footer are not printed. Negative numbers count backwards from the last page: -1 is the last page, -2 is the last but one page, and so on.
Example: "1,-1" will not print the header and footer on the first and the last page.
method: setPageNumberingOffset(offset)
html: page_numbering_offset
An offset between physical and logical page numbers. The default value is 0.
Example: if set to "1" then the page numbering will start with 1 on the second page.
Watermark
method: setWatermark(url, offset_x, offset_y)
html: watermark_url, watermark_offset_x, watermark_offset_y
url is a public absolute URL of the watermark image (must start either with http:// or https://). The supported formats are PNG and JPEG. offset_x and offset_y is the watermark offset in units. The default offset is (0,0).
method: setWatermarkRotation(angle)
html: watermark_rotation
Rotates the watermark by angle degrees.
method: setWatermarkInBackground(value)
html: watermark_in_background
When value is set to True then the watermark is be placed in the background. By default, the watermark is placed in the foreground.
HTTP
html: content_disposition
The value of the Content-Disposition HTTP header sent in the response. Allowed values:
- inline - The browser will open the PDF in the browser window.
- attachment - Forces the browser to pop up a Save As dialog. This is the default value.