Enum Class WriteOption

java.lang.Object
java.lang.Enum<WriteOption>
org.sejda.sambox.output.WriteOption
All Implemented Interfaces:
Serializable, Comparable<WriteOption>, Constable

public enum WriteOption extends Enum<WriteOption>
Options that can be selected when writing a PDF document.
Author:
Andrea Vacondio
  • Enum Constant Details

    • XREF_STREAM

      public static final WriteOption XREF_STREAM
      Writes the xref data as stream
    • ASYNC_BODY_WRITE

      public static final WriteOption ASYNC_BODY_WRITE
      Writes the document using the asynchronous writer as opposed to the default sync one
    • OBJECT_STREAMS

      public static final WriteOption OBJECT_STREAMS
      Writes pdf objects using objects stream
    • COMPRESS_STREAMS

      public static final WriteOption COMPRESS_STREAMS
      Adds a Flate filter to the streams if not already there
    • NO_METADATA_PRODUCER_MODIFIED_DATE_UPDATE

      public static final WriteOption NO_METADATA_PRODUCER_MODIFIED_DATE_UPDATE
      Does not automatically update metadata modified date and producer when saving
  • Method Details

    • values

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