Constructs a new HTMLToPDFJob instance.
The parameters for constructing an instance of HTMLToPDFJob.
Optional inputAsset object containing the input file.
Optional inputURL?: stringThe URL of the input HTML file.
Optional outputAsset object representing the output asset.
Optional params?: HTMLToPDFParamsHTMLToPDFParams object containing the HTML to PDF conversion parameters.
External assets can be set as output only when input is external asset as well.
Private Optional Readonly _htmlPrivate Optional Readonly _inputPrivate Optional Readonly _inputURLPrivate Optional Readonly _outputPrivate generatePDFServicesAPIRequestOptional notifierConfigList: NotifierConfig[]Protected validateGenerated using TypeDoc
A job that converts a HTML file to a PDF file. Some source formats may have associated conversion parameters which can be set using the HTMLToPDFParams parameter.
An HTML input can be provided either as a local zip archive or as a static HTML file with inline CSS. Alternatively, an HTML can also be specified via URL.
While creating the corresponding Asset instance, the media type must be:
In case the input is a local zip archive, it must have the following structure:
Sample layout:
Example
Sample Usage: