public class CreatePDFFromHTMLOptions extends CreatePDFOptions
CreatePDFOperation
.Modifier and Type | Class and Description |
---|---|
static class |
CreatePDFFromHTMLOptions.Builder
Builds a
CreatePDFFromHTMLOptions instance. |
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
getDataToMerge()
Returns JSON data that will be used to manipulate HTML DOM before it is converted into PDF file.
|
PageLayout |
getPageLayout()
Returns the intended page layout of the resulting PDF file.
|
boolean |
includesHeaderFooter()
Returns
true if default header and footer will be included in the resulting PDF file. |
htmlOptionsBuilder
public boolean includesHeaderFooter()
true
if default header and footer will be included in the resulting PDF file.
The default header consists of the date and the document.title.
The default footer consists of the file name and page number.true
if default header and footer will be included in the resulting PDF filepublic PageLayout getPageLayout()
public org.json.JSONObject getDataToMerge()
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.Copyright © 2020 Adobe. All rights reserved.