Constructs a new HTMLtoPDFParams
instance.
The parameters for constructing an instance of HTMLtoPDFParams
.
Optional
dataThe JSON data to merge. The data to be used by the javascript in the source html file to manipulate the HTML DOM before it gets converted to PDF. This mechanism is intended to be used to supply data that might otherwise be retrieved using ajax requests.
To make use of this mechanism, the source html file must include a script element such as:
<script src='./json.js' type='text/javascript'></script>
where json.js refers to the JSON data, And also Requires javascript in the source html file to make use of this JSON data to manipulate the HTML DOM.
Optional
includeWhether to include header and footer. If true
, default header and footer
will be included in resulting PDF.
Default value is false
.
The default header consists of the date and the document title.
The default footer consists of the file name and page number.
Optional
pageThe intended page layout of the resulting PDF file. The default layout sets the height as 8.5 inches and width as 11 inches.
Private
Optional
Readonly
_dataPrivate
Optional
Readonly
_includePrivate
Optional
Readonly
_pageReturns the data to merge.
The data to merge.
Returns whether to include header and footer.
true
if header and footer are to be included, false
otherwise.
Returns the page layout.
The page layout.
Generated using TypeDoc
Parameters for converting HTML to PDF using HTMLToPDFJob.