public class PDFAConvertParams
extends java.lang.Object
RemoveAllAnnotations if true, will remove all Annotations and Actions from the output
IgnoreFontErrors if true, will try to rasterize the page when fonts cannot be embedded
AbortIfXFAIsPresent if true, will abort conversion process if XFA form entry is detected
NoValidationErrors if true, will ignore validation errors
RasterizationResolution rasterization resolution; if 0, use 72 DPI
ValidateImplementationLimitsOfDocument Validate PDF Implementation Limits of the Document.
| Constructor and Description |
|---|
PDFAConvertParams() |
PDFAConvertParams(boolean RemoveAllAnnotations,
boolean IgnoreFontErrors,
boolean AbortIfXFAIsPresent)
Parameters for converting to PDF/A.
|
PDFAConvertParams(boolean removeAllAnnotations,
boolean ignoreFontErrors,
boolean abortIfXFAIsPresent,
boolean noValidationErrors,
int rasterizationResolution)
Parameters for converting to PDF/A.
|
PDFAConvertParams(boolean removeAllAnnotations,
boolean ignoreFontErrors,
boolean abortIfXFAIsPresent,
boolean noValidationErrors,
int rasterizationResolution,
boolean validateImplementationLimitsOfDocument)
Parameters for converting to PDF/A.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
getAbortIfXFAIsPresent()
The presence of XFA can result in some loss of data in output PDF/A-1 file as the PDFProcessor does not support XFA.
|
boolean |
getIgnoreFontErrors()
If we encounter any errors like unembeddable fonts etc.
|
boolean |
getNoValidationErrors()
Permit validation errors to be ignored
|
java.lang.String |
getProfileDesc()
The Output Intent of a PDF/A document may be any valid CMYK Profile for CMYK Conversion, and any valid RGB profile for RGB conversion.
|
int |
getRasterizationResolution()
Permit user to select rasterization resolution When this value is zero, we will rasterize at 72 DPI (Legacy Behaviour).
|
boolean |
getRemoveAllAnnotations()
Some of the standards like PDF/A prohibit the presence of some types of Annotations and Actions in order to comply with those standards.
|
boolean |
getValidateImplementationLimitsOfDocument()
Validate PDF Implementation Limits (as defined in the PDF Specification of the PDF/A target) of the Document.
|
void |
setAbortIfXFAIsPresent(boolean theSetting)
The presence of XFA can result in some loss of data in output PDF/A-1 file as the PDFProcessor does not support XFA.
|
void |
setIgnoreFontErrors(boolean theSetting)
If we encounter any errors like unembeddable fonts etc.
|
void |
setNoValidationErrors(boolean theSetting)
Permit validation errors to be ignored
|
void |
setProfileDesc(java.lang.String profile)
The Output Intent of a PDF/A document may be any valid CMYK Profile for CMYK Conversion, and any valid RGB profile for RGB conversion.
|
void |
setRasterizationResolution(int theSetting)
Permit user to select rasterization resolution When this value is zero, we will rasterize at 72 DPI (Legacy Behaviour).
|
void |
setRemoveAllAnnotations(boolean theSetting)
Some of the standards like PDF/A prohibit the presence of some types of Annotations and Actions in order to comply with those standards.
|
void |
setValidateImplementationLimitsOfDocument(boolean validateImplementationLimitsOfDocument)
Validate PDF Implementation Limits (as defined in the PDF Specification of the PDF/A target) of the Document.
|
public PDFAConvertParams()
public PDFAConvertParams(boolean RemoveAllAnnotations,
boolean IgnoreFontErrors,
boolean AbortIfXFAIsPresent)
RemoveAllAnnotations - Remove all annotations whether legal or illegal.IgnoreFontErrors - Rasterize a page when fonts cannot be embedded.AbortIfXFAIsPresent - Abort when XFA is present for PDF/A-1.public PDFAConvertParams(boolean removeAllAnnotations,
boolean ignoreFontErrors,
boolean abortIfXFAIsPresent,
boolean noValidationErrors,
int rasterizationResolution)
removeAllAnnotations - Remove all annotations whether legal or illegal.ignoreFontErrors - Rasterize a page when fonts cannot be embedded.abortIfXFAIsPresent - Abort when XFA is present for PDF/A-1.noValidationErrors - Ignore validation errors.rasterizationResolution - Rasterization resolution.public PDFAConvertParams(boolean removeAllAnnotations,
boolean ignoreFontErrors,
boolean abortIfXFAIsPresent,
boolean noValidationErrors,
int rasterizationResolution,
boolean validateImplementationLimitsOfDocument)
removeAllAnnotations - Remove all annotations whether legal or illegal.ignoreFontErrors - Rasterize a page when fonts cannot be embedded.abortIfXFAIsPresent - Abort when XFA is present for PDF/A-1.noValidationErrors - Ignore validation errors.rasterizationResolution - Rasterization resolution.validateImplementationLimitsOfDocument - Validate PDF Implementation Limits of the Document.public void delete()
public boolean getRemoveAllAnnotations()
By default we will filter all illegal Annotations and Actions.
If false we will filter out all illegal Annotations and Actions (according to the standard being used) while retaining the legal ones. If true this will remove all the Annotations and Actions from the output PDF/A compliant file.
public void setRemoveAllAnnotations(boolean theSetting)
By default we will filter all illegal Annotations and Actions.
If false we will filter out all illegal Annotations and Actions (according to the standard being used) while retaining the legal ones. If true this will remove all the Annotations and Actions from the output PDF/A compliant file.
public boolean getIgnoreFontErrors()
By default we will rasterize the page on error.
If true we will try to rasterize the current page if any error occured. If false we will abort and throw an exception if any error occured.
public void setIgnoreFontErrors(boolean theSetting)
By default we will rasterize the page on error.
If true we will try to rasterize the current page if any error occured. If false we will abort and throw an exception if any error occured.
public boolean getAbortIfXFAIsPresent()
By default we will not abort if XFA is present for PDF/A-1.
If false we will convert even if XFA is found. If true we will abort the process if XFA is found.
public void setAbortIfXFAIsPresent(boolean theSetting)
By default we will not abort if XFA is present for PDF/A-1.
If false we will convert even if XFA is found. If true we will abort the process if XFA is found.
public boolean getNoValidationErrors()
When true, PDF Implementation Limits (as defined in the PDF Specification of the PDF/A target) of the page are ignored. When false, PDF Implementation Limits of the Page are checked and if violated will cause the Page to be rasterized as a fallback mechanism when IgnoreFontErrors is true or simply raise an error if IgnoreFontErrors is false.
public void setNoValidationErrors(boolean theSetting)
When true, PDF Implementation Limits (as defined in the PDF Specification of the PDF/A target) of the page are ignored. When false, PDF Implementation Limits of the Page are checked and if violated will cause the Page to be rasterized as a fallback mechanism when IgnoreFontErrors is true or simply raise an error if IgnoreFontErrors is false.
public boolean getValidateImplementationLimitsOfDocument()
public void setValidateImplementationLimitsOfDocument(boolean validateImplementationLimitsOfDocument)
public int getRasterizationResolution()
public void setProfileDesc(java.lang.String profile)
If this description is present, and specifies a profile of the wrong color family, or specifies a profile which cannot be located in resources, an exception will be raised.
public java.lang.String getProfileDesc()
If this description is present, and specifies a profile of the wrong color family, or specifies a profile which cannot be located in resources, an exception will be raised.
public void setRasterizationResolution(int theSetting)