public class RasterizationOptions extends Object
Provides options for converting files into PDF.
Learn more
Constructor and Description |
---|
RasterizationOptions()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdvancedOption(AdvancedRasterizationOptions optionType)
You can use this method to register an advanced rasterization option to apply.
|
void |
addAdvancedOption(AdvancedRasterizationOptions optionType,
HashMap<String,String> parameters)
You can use this method to register an advanced rasterization option to apply.
|
PdfComplianceLevel |
getCompliance()
Gets the PDF Compliance level.
|
boolean |
getEnabled()
Gets a value indicating whether all pages in the document need to be converted to images and put in a single PDF file.
|
int |
getPageCount()
Gets the number of pages to be converted into PDF.
|
int |
getPageIndex()
Gets the index of the first page (0-based) to convert into PDF.
|
boolean |
hasAdvancedOptions()
Gets an indicator, which is true if advanced rasterization options are set.
|
boolean |
isPageCountSet()
Gets a value indicating whether the PageCount property was changed (set) after its initialization.
|
boolean |
isStartPageIndexSet()
Gets a value indicating whether the PageIndex property was changed (set) after its initialization.
|
void |
setCompliance(PdfComplianceLevel value)
Sets the PDF Compliance level.
|
void |
setEnabled(boolean value)
Sets a value indicating whether all pages in the document need to be converted to images and put in a single PDF file.
|
void |
setPageCount(int value)
Sets the number of pages to be converted into PDF.
|
void |
setPageIndex(int value)
Sets the index of the first page (0-based) to convert into PDF.
|
public final boolean getEnabled()
Gets a value indicating whether all pages in the document need to be converted to images and put in a single PDF file. TRUE by default, set to FALSE in order to avoid rasterization.
public final void setEnabled(boolean value)
Sets a value indicating whether all pages in the document need to be converted to images and put in a single PDF file. TRUE by default, set to FALSE in order to avoid rasterization.
value
- A value indicating whether all pages in the document need to be converted to images and put in a single PDF file. TRUE by default, set to FALSE in order to avoid rasterization.public final int getPageIndex()
Gets the index of the first page (0-based) to convert into PDF.
public final void setPageIndex(int value)
Sets the index of the first page (0-based) to convert into PDF.
value
- The index of the first page (0-based) to convert into PDF.public final boolean isStartPageIndexSet()
Gets a value indicating whether the PageIndex property was changed (set) after its initialization.
public final int getPageCount()
Gets the number of pages to be converted into PDF.
public final void setPageCount(int value)
Sets the number of pages to be converted into PDF.
value
- The number of pages to be converted into PDF.public final boolean isPageCountSet()
Gets a value indicating whether the PageCount property was changed (set) after its initialization.
public final PdfComplianceLevel getCompliance()
Gets the PDF Compliance level.
public final void setCompliance(PdfComplianceLevel value)
Sets the PDF Compliance level.
value
- The PDF Compliance level.public final boolean hasAdvancedOptions()
Gets an indicator, which is true if advanced rasterization options are set.
public final void addAdvancedOption(AdvancedRasterizationOptions optionType)
You can use this method to register an advanced rasterization option to apply.
optionType
- Provides information about the selected effect type (grayscale, border, etc.)public final void addAdvancedOption(AdvancedRasterizationOptions optionType, HashMap<String,String> parameters)
You can use this method to register an advanced rasterization option to apply.
optionType
- Provides information about the selected effect type (grayscale, border, etc.)parameters
- Parameters for the given effect, such as rotation angle