PrintToPDFParameter
Constructors
Properties
Display header and footer. Defaults to false.
HTML template for the print footer. Should use the same format as the headerTemplate
.
Whether or not to embed the document outline into the PDF.
Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice.
HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them:
Bottom margin in inches. Defaults to 1cm (~0.4 inches).
Left margin in inches. Defaults to 1cm (~0.4 inches).
Right margin in inches. Defaults to 1cm (~0.4 inches).
Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages are printed in the document order, not in the order specified, and no more than once. Defaults to empty string, which implies the entire document is printed. The page numbers are quietly capped to actual page count of the document, and ranges beyond the end of the document are ignored. If this results in no pages to print, an error is reported. It is an error to specify a range with start greater than end.
Paper height in inches. Defaults to 11 inches.
Paper width in inches. Defaults to 8.5 inches.
Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size.
Print background graphics. Defaults to false.
return as stream