Class CreatePDFFromHTMLOptions.Builder
Builds a CreatePDFFromHTMLOptions instance.
Inheritance
System.Object
CreatePDFFromHTMLOptions.Builder
Namespace: Adobe.DocumentCloud.Services.options.createpdf
Assembly: Adobe.DocumentCloud.Services.Doc.dll
Syntax
public class Builder
Constructors
Builder()
Constructs a Builder instance.
Declaration
public Builder()
Methods
Build()
Returns a new CreatePDFFromHTMLOptions instance built from the current state of this builder.
Declaration
public CreatePDFFromHTMLOptions Build()
Returns
| Type | Description |
|---|---|
| CreatePDFFromHTMLOptions | a new |
IncludeHeaderFooter(Boolean)
Sets the includeHeaderFooter parameter. If true, default header and footer will be included in resulting PDF. The default header consists of the date and the document.title. The default footer consists of the file name and page number.
Declaration
public CreatePDFFromHTMLOptions.Builder IncludeHeaderFooter(bool includeHeaderFooter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | includeHeaderFooter | true if default header and footer should be included in the resulting PDF. Default value is |
Returns
| Type | Description |
|---|---|
| CreatePDFFromHTMLOptions.Builder | this Builder instance to add any additional parameters |
WithPageLayout(PageLayout)
Sets the pageLayout parameter.
Declaration
public CreatePDFFromHTMLOptions.Builder WithPageLayout(PageLayout pageLayout)
Parameters
| Type | Name | Description |
|---|---|---|
| PageLayout | pageLayout | intended page layout of the resulting PDF file |
Returns
| Type | Description |
|---|---|
| CreatePDFFromHTMLOptions.Builder | this Builder instance to add any additional parameters |