Enum Class SaveFlags

java.lang.Object
java.lang.Enum<SaveFlags>
com.datalogics.PDFL.SaveFlags
All Implemented Interfaces:
Serializable, Comparable<SaveFlags>, Constable

public enum SaveFlags extends Enum<SaveFlags>
  • Enum Constant Details

    • INCREMENTAL

      public static final SaveFlags INCREMENTAL
      Incremental save only write objects that have changed after the end of the document rather than disturbing unchanged items. Use with Copy to create a new file which incorporates a copy of the input file before making changes. This flag can be useful when making changes to signed documents, as it preserves the validity of any existing signatures.
    • FULL

      public static final SaveFlags FULL
      Save the entire document.
    • COPY

      public static final SaveFlags COPY
      Saves a copy of the document. Used with Incremental to create a new file from a binary copy of the input document.
    • LINEARIZED

      public static final SaveFlags LINEARIZED
      Save in a format that is suitable for remote (network) access, Linearized is sometimes referred to as Web Optimized because of its goal of minimizing the perception of poor performance due to the number of pages in a document. This inherently uses OptimizeFonts, for documents with a large number of fonts, font optimization can have poor performance, see SaveLinearizedNoOptimizeFonts as an alternative.
    • COLLECT_GARBAGE

      public static final SaveFlags COLLECT_GARBAGE
      Collect Garbage by removing unreferenced objects. Only valid with Full.
    • KEEP_MOD_DATE

      public static final SaveFlags KEEP_MOD_DATE
      Do not update the Modification Date
    • CLOSE_AFTER_SAVE

      public static final SaveFlags CLOSE_AFTER_SAVE
      Close document after save. Use this flag for saving to the stream only. Note that using this flag to save a document to any destination other than stream causes an exception.
    • XMPPACKET_READ_ONLY_NO_PADDING

      public static final SaveFlags XMPPACKET_READ_ONLY_NO_PADDING
      Save XMP data as read-only without padding
    • UNCOMPRESSED

      public static final SaveFlags UNCOMPRESSED
      Do not use object stream compression. Only valid with Full.
    • COMPRESSED

      public static final SaveFlags COMPRESSED
      Use object compression wherever possible. Only valid with Full.
    • COMPRESS_STRUCTURE_ONLY

      public static final SaveFlags COMPRESS_STRUCTURE_ONLY
      Use object compression only for Logical Structure items. Only valid with Full.
    • REMOVE_ASCIIFILTERS

      public static final SaveFlags REMOVE_ASCIIFILTERS
      Remove the ASCII85 filter from all streams where its in use. Only valid with Full.
    • ADD_FLATE

      public static final SaveFlags ADD_FLATE
      Encode any uncompressed stream witht the Flate filter. Only valid with Full.
    • REPLACE_LZW

      public static final SaveFlags REPLACE_LZW
      Replace any LZW encoded stream with Flate. Only valid with Full.
    • OPTIMIZE_XOBJECTS

      public static final SaveFlags OPTIMIZE_XOBJECTS
      Merge identical XObjects.
    • OPTIMIZE_CONTENT_STREAMS

      public static final SaveFlags OPTIMIZE_CONTENT_STREAMS
      Optimize Content Streams operators where possible.
    • OPTIMIZE_FONTS

      public static final SaveFlags OPTIMIZE_FONTS
      Merge Font Descriptors and encoding where possible. For documents with a large number of fonts, font optimization can have poor performance, this should only be set if necessary.
    • OPTIMIZE_MARKED_JBIG_2DICTIONARIES

      public static final SaveFlags OPTIMIZE_MARKED_JBIG_2DICTIONARIES
      Delete symbols specific to JBIG2 Dictionaries that couldn't be removed previously.
    • ENSURE_7BIT_ASCII

      public static final SaveFlags ENSURE_7BIT_ASCII
      Deprecated.
    • AUTO_SAVE

      public static final SaveFlags AUTO_SAVE
      Deprecated.
    • DO_NOT_CREATE_TO_UNICODE_WIDTHS

      public static final SaveFlags DO_NOT_CREATE_TO_UNICODE_WIDTHS
      Don't create /ToUnicode and /Widths entries for Fonts to improve performance.
    • SAVE_ORIGINAL_METADATA

      public static final SaveFlags SAVE_ORIGINAL_METADATA
      Save original /Metadata stream of input as /Metadata stream of output document.
    • SAVE_LINEARIZED_NO_OPTIMIZE_FONTS

      public static final SaveFlags SAVE_LINEARIZED_NO_OPTIMIZE_FONTS
      Save the document as Linearized the same as Linearized but OptimizeFonts is disabled. For documents with a large number of fonts, font optimization can have poor performance and is often unnecessary.
  • Method Details

    • values

      public static SaveFlags[] 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

      public static SaveFlags valueOf(String name)
      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 name
      NullPointerException - if the argument is null