Package com.datalogics.PDFL
Enum Class OptimizerOption
- All Implemented Interfaces:
Serializable,Comparable<OptimizerOption>,Constable
Select the optimization option to be set or obtained.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen this option is ON, compress the actual PDF object stream.When this option is ON, any streams (of more than 20 bytes length) which are not compressed will be compressed using Flate.When this option is ON, All acroform structures will be removed from the document.When this option is ON, any Alternate Images defined for a given image (Images in different resolutions than the base image) will be discarded.When this option is ON, remove all annotations, of all types, from all pages.When this option is ON, remove the ASCIIHex and ASCII85 filters from any streams that use these as their final filters.When this option is ON, all bookmarks will be removed from the document.When this option is ON, remove all annotations which are commentary to the content (All "Markup" annotations).When this option is ON, any Document Information, beyond the basic information supplied by APDFL, will be discarded.When this option is ON, locate and remove duplicate copies of forms, using a single copy for all references to that form.When this option is ON, remove any document embedded in the PDF Document.When this option is ON, remove all JavaScript actions in the document.When this option is ON, any Metadata embedded in the document (Except for the document level Metadata) will be removed.When this option is ON, discard any NameTrees in the document.When this option is ON, any OutputIntent structures in the document, along with their associated color profiles, will be removed.When this option is ON, discard any Page Label Trees embedded in the document This may cause a difference in the display and selection of pages in some viewers.When this option is ON, remove any user supplied private PieceData embedded in the document.When this option is ON, discard any structure trees in the document.When this option is ON, any thumbnails embedded in the document will be removed.When this option is ON, remove any Fonts which are included in the document, but never used in the document.When this option is ON, remove any Forms XObjects which are included in the document, but never displayed in the document.When this option is ON, remove any Image XObjects which are included in the document, but never displayed in the document.When this option is ON, remove from the XMP Metadata any padding areas, left to allow the XMP data to be updated.When this option is ON, down-converts all 16 Bits Per Component images to 8 Bits Per Component.When this option is ON, Downsample all Black and White images above MAX DPI to ResetTo DPI.When this option is ON, Downsample all color images above MAX DPI to ResetTo DPI.When this option is ON, Downsample all gray scale images above MAX DPI to ResetTo DPI.When this option is ON, Optional Content in the document is Flattened.When this option is ON, create the optimized document as Linearized (Optimized for Web Access).When this option is ON, the document will be searched for mutliple copies of the same font.When this option is ON, attempt to find common segments of code at the start of page content, and share a single copy of such common code.When this option is ON, any fonts which are subset embedded, will be replaced with a newly subset font.When this option is ON, recompress all Black and White images which are compressed by a different scheme than one select by RecompressTo to RecompressTo.When this option is ON, recompress all color images which are compressed by a different scheme than one select by RecompressTo to RecompressTo.When this option is ON, recompress all gray scale images which are compressed by a different scheme than one select by RecompressTo to RecompressTo.In all of the above Downsample and Recompress operations, if this option is ON, replace the image ONLY if the resultant compressed image is smaller than the original.This will remove any embedded base 14 fonts.When this option is ON, all embedded fonts will be removed.When this option is ON, any LZW Compressed streams will be recompressed using Flate.When this option is ON, any fonts which are embedded, but not subset, will be replaced with subset fonts. -
Method Summary
Modifier and TypeMethodDescriptionstatic OptimizerOptionReturns the enum constant of this class with the specified name.static OptimizerOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DOWNSAMPLE_COLOR
When this option is ON, Downsample all color images above MAX DPI to ResetTo DPI. Default is ON. -
RECOMPRESS_COLOR
When this option is ON, recompress all color images which are compressed by a different scheme than one select by RecompressTo to RecompressTo. Default is ON. -
DOWNSAMPLE_GRAY
When this option is ON, Downsample all gray scale images above MAX DPI to ResetTo DPI. Default is ON. -
RECOMPRESS_GRAY
When this option is ON, recompress all gray scale images which are compressed by a different scheme than one select by RecompressTo to RecompressTo. Default is ON. -
DOWNSAMPLE_BW
When this option is ON, Downsample all Black and White images above MAX DPI to ResetTo DPI. Default is ON. -
RECOMPRESS_BW
When this option is ON, recompress all Black and White images which are compressed by a different scheme than one select by RecompressTo to RecompressTo. Default is ON. -
RECOMPRESS_ONLY_IF_SMALLER
In all of the above Downsample and Recompress operations, if this option is ON, replace the image ONLY if the resultant compressed image is smaller than the original. Default is ON. -
DISCARD_ALTERNATE_IMAGES
When this option is ON, any Alternate Images defined for a given image (Images in different resolutions than the base image) will be discarded. Default is ON. -
SUBSET_ALL_EMBEDDED_FONTS
When this option is ON, any fonts which are embedded, but not subset, will be replaced with subset fonts. This can save considerable space in a document, but does so at the risk of preventing future edits to the document. Default is ON. -
RE_SUBSET_ALL_SUBSET_FONTS
When this option is ON, any fonts which are subset embedded, will be replaced with a newly subset font. This will generally only happen if the document has been edited since it was created, or the document contains only a subset of the page that it originally contained. NOTE: This can only REMOVE glyphs from the subset font. It cannot add glyphs that were not present int he original subset. Default is ON. -
REMOVE_ALL_EMBEDDED_FONTS
When this option is ON, all embedded fonts will be removed. If this is done, the document can only be viewed on platforms which contain all of the fonts required. Generally, you would want to do this only in very tightly controlled circumstances. Default is OFF. -
REMOVE_ALL_BASE_14_FONTS
This will remove any embedded base 14 fonts. Generally, it is safe to remove these fonts, as any platform that supports PDF should have locally available copies of them. However, there is still some risk that the embedded fonts are not identical to the actual base14 fonts, and hence may render differently. Default is OFF. -
MERGE_DUPLICATE_FONTS
When this option is ON, the document will be searched for mutliple copies of the same font. These will then be combined into a single font. Default is ON. -
DISCARD_BOOKMARKS
When this option is ON, all bookmarks will be removed from the document. Note that this information cannot be reconstructed. Default is OFF. -
DISCARD_ACROFORMS
When this option is ON, All acroform structures will be removed from the document. NOTE: Filled in fields, if any, will be left in the document. So the content of those fields will continue to display. Default is ON. -
DISCARD_OUTPUT_INTENT
When this option is ON, any OutputIntent structures in the document, along with their associated color profiles, will be removed. This may cause color shifting, when rendering the document. Default is OFF. -
DISCARD_THUMBNAILS
When this option is ON, any thumbnails embedded in the document will be removed. Default is ON. -
DISCARD_PAGE_LABELS
When this option is ON, discard any Page Label Trees embedded in the document This may cause a difference in the display and selection of pages in some viewers. Default is ON. -
DISCARD_NAME_TRESS
When this option is ON, discard any NameTrees in the document. This may cause issues with links within the document. Default is ON. -
DISCARD_STRUCTURE_TREES
When this option is ON, discard any structure trees in the document. Default is OFF. -
DISCARD_FILE_ATTACHMENTS
When this option is ON, remove any document embedded in the PDF Document. Default is ON. -
DISCARD_XMPPADDING
When this option is ON, remove from the XMP Metadata any padding areas, left to allow the XMP data to be updated. Default is ON. -
DISCARD_UNUSED_FORMS
When this option is ON, remove any Forms XObjects which are included in the document, but never displayed in the document. Default is ON. -
DISCARD_PIECE_DATA
When this option is ON, remove any user supplied private PieceData embedded in the document. This will never effect appearance, but may limit the use of special processing by the application that provided this data. Default is ON. -
COMPRESS_STREAMS
When this option is ON, any streams (of more than 20 bytes length) which are not compressed will be compressed using Flate. Default is ON. -
REPLACE_LZW
When this option is ON, any LZW Compressed streams will be recompressed using Flate. Default is ON. -
DISCARD_METADATA
When this option is ON, any Metadata embedded in the document (Except for the document level Metadata) will be removed. Default is OFF. -
DISCARD_DOCUMENT_INFO
When this option is ON, any Document Information, beyond the basic information supplied by APDFL, will be discarded. Note that this will also remove that information from the document level Metadata. Default is OFF. -
OPTIMIZE_CONTENT_STREAMS
When this option is ON, attempt to find common segments of code at the start of page content, and share a single copy of such common code. Default is ON. -
LINEARIZE
When this option is ON, create the optimized document as Linearized (Optimized for Web Access). Default is OFF. -
COMPRESS_DOCUMENT_STRUCTURE
When this option is ON, compress the actual PDF object stream. This should not be used for documents which must be rendered on older PDF rendering engines. Default is ON. -
DISCARD_DUPLICATE_FORMS
When this option is ON, locate and remove duplicate copies of forms, using a single copy for all references to that form. Default is ON. -
DISCARD_ASCIIFILTERS
When this option is ON, remove the ASCIIHex and ASCII85 filters from any streams that use these as their final filters. These have historically been used to render data safe in a 7 bit data channel, or for debugging purposes Default is ON. -
DISCARD_COMMENTS
When this option is ON, remove all annotations which are commentary to the content (All "Markup" annotations). Default is OFF. -
DISCARD_ANNOTATIONS
When this option is ON, remove all annotations, of all types, from all pages. This may result in visible loss of information in the rendered pages. Default is OFF. -
DISCARD_JAVA_SCRIPT_ACTIONS
When this option is ON, remove all JavaScript actions in the document. Default is OFF. -
FLATTEN_OPTIONAL_CONTENT
When this option is ON, Optional Content in the document is Flattened. Default is OFF. -
DOWN_CONVERT_16_TO_8BPC_IMAGES
When this option is ON, down-converts all 16 Bits Per Component images to 8 Bits Per Component. Default is ON. -
DISCARD_UNUSED_IMAGES
When this option is ON, remove any Image XObjects which are included in the document, but never displayed in the document. Default is ON. -
DISCARD_UNUSED_FONTS
When this option is ON, remove any Fonts which are included in the document, but never used in the document. Default is ON.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-