public class PDFAConversionOptions extends ConversionOptions
Modifier and Type | Class and Description |
---|---|
static interface |
PDFAConversionOptions.SubstituteFontRecord
Defines a font substitution record.
|
Modifier and Type | Field and Description |
---|---|
static int |
OPTION_DELETE
Delete the objects when encountered.
|
static int |
OPTION_FLATTEN
Flatten Annotation.
|
static int |
OPTION_NO_FLATTEN
Do not flatten annotation.
|
static int |
OPTION_OPAQUE
Convert transparency to opaque.
|
static int |
OPTION_WARN
Add a warning record to the results when encountered.
|
Constructor and Description |
---|
PDFAConversionOptions() |
Modifier and Type | Method and Description |
---|---|
int |
getEmbeddedFiles()
Returns the option set to decide what to do with embedded files.
|
int |
getSignatureFields()
Returns the option set to decide what to do with Signature Fields.
|
Map<String,PDFAConversionOptions.SubstituteFontRecord> |
getSubstituteFontsMap() |
int |
getTransparency()
Returns the option set to decide what to do with transparency.
|
int |
getUnsupportedAnnotations()
Returns the option set to decide what to do with unsupported annotations.
|
void |
setEmbeddedFiles(int embeddedFiles)
Set the option to decide what to do with embedded files.
|
void |
setFontSubstitute(String origFontFamily,
String substituteFontFamily,
boolean preferSubstitute)
Creates a SubstituteFontRecord instance and maps it to the origFontFamily
see setSubstituteFontsMap(Map . |
void |
setSignatureFields(int signatureFields)
Set the option to flatten Signature Fields or not.
|
void |
setSubstituteFontsMap(Map<String,PDFAConversionOptions.SubstituteFontRecord> fontNameSubstitutions)
Sets a map of font family names to substitute font family names.
|
void |
setTransparency(int transparency)
Set the option to decide what to do with transparecny.
|
void |
setUnsupportedAnnotations(int unsupportedAnnotations)
Set the option to decide what to do with unsupported annotations.
|
isClearSignatures, isClearUsageRights, setClearSignatures, setClearUsageRights
public static final int OPTION_DELETE
public static final int OPTION_WARN
public static final int OPTION_OPAQUE
public static final int OPTION_FLATTEN
public static final int OPTION_NO_FLATTEN
public int getUnsupportedAnnotations()
public void setUnsupportedAnnotations(int unsupportedAnnotations)
unsupportedAnnotations
- Can be OPTION_DELETE, OPTION_FLATTEN, or OPTION_WARN.public int getTransparency()
public void setTransparency(int transparency)
transparency
- Can be OPTION_OPAQUE or OPTION_WARN.public int getEmbeddedFiles()
public void setEmbeddedFiles(int embeddedFiles)
embeddedFiles
- Can be OPTION_DELETE or OPTION_WARN.public int getSignatureFields()
public void setSignatureFields(int signatureFields)
signatureFields
- Can be OPTION_FLATTEN or OPTION_NO_FLATTEN.public void setSubstituteFontsMap(Map<String,PDFAConversionOptions.SubstituteFontRecord> fontNameSubstitutions)
fontNameSubstitutions
- - a Mappublic Map<String,PDFAConversionOptions.SubstituteFontRecord> getSubstituteFontsMap()
setSubstituteFontsMap(Map)
.public void setFontSubstitute(String origFontFamily, String substituteFontFamily, boolean preferSubstitute)
setSubstituteFontsMap(Map)
.origFontFamily
- - should be the font family name of a font to set a SubstituteFontRecord forsubstituteFontFamily
- - should be the name of the substitute font family to use for origFontFamilypreferSubstitute
- - whether the substitute should be used even if the origFontFamily is available