public class RemovalOptions extends NativeObject
Removal options specify the PDF data structures to copy or remove, e.g. article threads, metadata, or alternate images.
In addition, the visual appearances of signatures, annotations, form fields, and links can be flattened.
Flattening means, that the appearance of such a data structure is drawn as
non-editable graphic onto the page; for visual appearances of signatures,
flattening has a slightly different meaning
(see property getRemoveSignatureAppearances()
).
Modifier and Type | Method | Description |
---|---|---|
ConversionStrategy |
getAnnotations() |
The conversion strategy for annotations (Getter)
|
ConversionStrategy |
getFormFields() |
The conversion strategy for interactive forms (Getter)
|
ConversionStrategy |
getLinks() |
The conversion strategy for links (Getter)
|
boolean |
getRemoveAlternateImages() |
Whether to remove additional or alternative versions of images (Getter)
|
boolean |
getRemoveArticleThreads() |
Whether to remove the sequential flows (threads) of articles (Getter)
|
boolean |
getRemoveMetadata() |
Whether to remove document's XMP metadata (Getter)
|
boolean |
getRemoveOutputIntents() |
Whether to remove all output intents (Getter)
|
boolean |
getRemovePieceInfo() |
Whether to remove the piece-info dictionary (private PDF processor data) (Getter)
|
RemovalStrategy |
getRemoveSignatureAppearances() |
Whether to remove or flatten signature appearances (Getter)
|
boolean |
getRemoveStructureTree() |
Whether to remove the data describing the logical structure of a PDF (Getter)
|
boolean |
getRemoveThumbnails() |
Whether to remove thumbnail images which represent the PDF pages in miniature form (Getter)
|
void |
setAnnotations(ConversionStrategy value) |
The conversion strategy for annotations (Setter)
|
void |
setFormFields(ConversionStrategy value) |
The conversion strategy for interactive forms (Setter)
|
void |
setLinks(ConversionStrategy value) |
The conversion strategy for links (Setter)
|
void |
setRemoveAlternateImages(boolean value) |
Whether to remove additional or alternative versions of images (Setter)
|
void |
setRemoveArticleThreads(boolean value) |
Whether to remove the sequential flows (threads) of articles (Setter)
|
void |
setRemoveMetadata(boolean value) |
Whether to remove document's XMP metadata (Setter)
|
void |
setRemoveOutputIntents(boolean value) |
Whether to remove all output intents (Setter)
|
void |
setRemovePieceInfo(boolean value) |
Whether to remove the piece-info dictionary (private PDF processor data) (Setter)
|
void |
setRemoveSignatureAppearances(RemovalStrategy value) |
Whether to remove or flatten signature appearances (Setter)
|
void |
setRemoveStructureTree(boolean value) |
Whether to remove the data describing the logical structure of a PDF (Setter)
|
void |
setRemoveThumbnails(boolean value) |
Whether to remove thumbnail images which represent the PDF pages in miniature form (Setter)
|
equals, hashCode
public boolean getRemoveAlternateImages()
false
except in the profile profiles.Print
.public void setRemoveAlternateImages(boolean value)
false
except in the profile profiles.Print
.public boolean getRemoveArticleThreads()
true
except in the profile profiles.Archive
.public void setRemoveArticleThreads(boolean value)
true
except in the profile profiles.Archive
.public boolean getRemoveMetadata()
profiles.Web
profile: true
profiles.Print
profile: false
profiles.Archive
profile: false
profiles.MinimalFileSize
profile: true
public void setRemoveMetadata(boolean value)
profiles.Web
profile: true
profiles.Print
profile: false
profiles.Archive
profile: false
profiles.MinimalFileSize
profile: true
public boolean getRemoveOutputIntents()
Output intents provide a means for matching the color characteristics of PDF page content with those of a target output device or production environment in which the document will be printed.
Default: false
except in the profile profiles.MinimalFileSize
.
public void setRemoveOutputIntents(boolean value)
Output intents provide a means for matching the color characteristics of PDF page content with those of a target output device or production environment in which the document will be printed.
Default: false
except in the profile profiles.MinimalFileSize
.
public boolean getRemovePieceInfo()
The removal of this proprietary application data has no effect on the document's visual appearance.
Default: true
except in the profile profiles.Archive
.
public void setRemovePieceInfo(boolean value)
The removal of this proprietary application data has no effect on the document's visual appearance.
Default: true
except in the profile profiles.Archive
.
public boolean getRemoveStructureTree()
The logical structure of the document is a description of the content of its pages. It consists of a fine granular hierarchical tagging that distinguishes between the actual content and artifacts (such as page numbers, layout artifacts, etc.). The tagging provides a meaningful description, for example "This is a header", "This color image shows a small sailing boat at sunset", etc. This information can be used e.g. to read the document to the visually impaired.
Default: true
except in the profile profiles.Archive
.
public void setRemoveStructureTree(boolean value)
The logical structure of the document is a description of the content of its pages. It consists of a fine granular hierarchical tagging that distinguishes between the actual content and artifacts (such as page numbers, layout artifacts, etc.). The tagging provides a meaningful description, for example "This is a header", "This color image shows a small sailing boat at sunset", etc. This information can be used e.g. to read the document to the visually impaired.
Default: true
except in the profile profiles.Archive
.
public boolean getRemoveThumbnails()
true
in all profiles.public void setRemoveThumbnails(boolean value)
true
in all profiles.public RemovalStrategy getRemoveSignatureAppearances()
A signature in a PDF consist of two parts:
Part (a) can be used by a viewing application, to verify that the PDF has not changed since it has been signed and report this to the user.
During optimizing, the PDF is altered and hence its digital signature (a) is broken and must be removed.
RemovalStrategy.FLATTEN
: (a) is removed and (b) is drawn as non-editable graphic onto the page.
Within the context of signatures this is called "flattening".RemovalStrategy.REMOVE
: (a) and (b) are removed.
Default: RemovalStrategy.FLATTEN
in all profiles.
public void setRemoveSignatureAppearances(RemovalStrategy value)
A signature in a PDF consist of two parts:
Part (a) can be used by a viewing application, to verify that the PDF has not changed since it has been signed and report this to the user.
During optimizing, the PDF is altered and hence its digital signature (a) is broken and must be removed.
RemovalStrategy.FLATTEN
: (a) is removed and (b) is drawn as non-editable graphic onto the page.
Within the context of signatures this is called "flattening".RemovalStrategy.REMOVE
: (a) and (b) are removed.
Default: RemovalStrategy.FLATTEN
in all profiles.
java.lang.IllegalArgumentException
- if value
is null
public ConversionStrategy getAnnotations()
The conversion strategy for annotations.
Annotations in PDF are interactive elements on the pages, such as:
Note that this does not include form fields (see getFormFields()
) and links (see getLinks()
).
Default: ConversionStrategy.COPY
in all profiles.
public void setAnnotations(ConversionStrategy value)
The conversion strategy for annotations.
Annotations in PDF are interactive elements on the pages, such as:
Note that this does not include form fields (see getFormFields()
) and links (see getLinks()
).
Default: ConversionStrategy.COPY
in all profiles.
java.lang.IllegalArgumentException
- if value
is null
public ConversionStrategy getFormFields()
ConversionStrategy.COPY
in all profiles.public void setFormFields(ConversionStrategy value)
ConversionStrategy.COPY
in all profiles.java.lang.IllegalArgumentException
- if value
is null
public ConversionStrategy getLinks()
ConversionStrategy.COPY
in all profiles.public void setLinks(ConversionStrategy value)
ConversionStrategy.COPY
in all profiles.java.lang.IllegalArgumentException
- if value
is null