public static class CreatePDFFromHTMLOptions.Builder extends Object
CreatePDFFromHTMLOptions
instance.Constructor and Description |
---|
Builder()
Constructs a
Builder instance. |
Modifier and Type | Method and Description |
---|---|
CreatePDFFromHTMLOptions |
build()
Returns a new
CreatePDFFromHTMLOptions instance built from the current state of this builder. |
CreatePDFFromHTMLOptions.Builder |
includeHeaderFooter(boolean includeHeaderFooter)
Sets the includeHeaderFooter parameter.
|
CreatePDFFromHTMLOptions.Builder |
withDataToMerge(org.json.JSONObject dataToMerge)
Sets the data to be used by the javascript in the source html file to manipulate the HTML DOM before it gets converted to PDF.
|
CreatePDFFromHTMLOptions.Builder |
withPageLayout(PageLayout pageLayout)
Sets the pageLayout parameter.
|
public CreatePDFFromHTMLOptions.Builder includeHeaderFooter(boolean includeHeaderFooter)
includeHeaderFooter
- true if default header and footer should be included in the resulting PDF. Default value is true
public CreatePDFFromHTMLOptions.Builder withPageLayout(PageLayout pageLayout)
pageLayout
- intended page layout of the resulting PDF filepublic CreatePDFFromHTMLOptions.Builder withDataToMerge(org.json.JSONObject dataToMerge)
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.dataToMerge
- JSON objectpublic CreatePDFFromHTMLOptions build()
CreatePDFFromHTMLOptions
instance built from the current state of this builder.CreatePDFFromHTMLOptions
instanceCopyright © 2020 Adobe. All rights reserved.