Enum XfaType

java.lang.Object
java.lang.Enum<XfaType>
com.pdftools.pdf.XfaType
All Implemented Interfaces:
Serializable, Comparable<XfaType>

public enum XfaType extends Enum<XfaType>

The XFA type of a PDF document

See Document.getXfa() to get the XFA type of a PDF document.
  • Enum Constant Details

    • NO_XFA

      public static final XfaType NO_XFA

      No XFA document

      The document is not an XFA document but a regular PDF document.
    • XFA_NEEDS_RENDERING

      public static final XfaType XFA_NEEDS_RENDERING

      XFA document

      The document is an XFA document. The document cannot be processed by many components, so it is recommended to convert it to a PDF document beforehand.
    • XFA_RENDERED

      public static final XfaType XFA_RENDERED

      Rendered XFA document

      The document is a "rendered" XFA document where the PDF pages' content has been generated from the XFA form. Such documents can be processed as regular PDF documents. However, there is no guarantee that the generated pages accurately reflect the XFA document.
  • Method Details

    • values

      public static XfaType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static XfaType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null