Class MetadataFormDocument


  • public class MetadataFormDocument
    extends Object
    Describes the properties of the document's form. (Should the document contain a form.)
    • Constructor Detail

      • MetadataFormDocument

        public MetadataFormDocument()
    • Method Detail

      • getDefaultAppearance

        @Nullable
        public @Nullable String getDefaultAppearance()
        If present, this contains the default appearance of the form's fields. This shall be a string containing graphics and text state operators for example defining text colors, sizes etc.
        Returns:
        defaultAppearance
      • setDefaultAppearance

        public void setDefaultAppearance​(String defaultAppearance)
      • getField

        @Nullable
        public @Nullable List<MetadataField> getField()
        Get field
        Returns:
        field
      • getFormType

        @Nullable
        public @Nullable MetadataFormDocument.FormTypeEnum getFormType()
        When set to another value than \"none\", the document does contain a PDF form in the hereby given format. * none = The document does not contain a form. * acroForm = The document contains a standard PDF Acroform. * staticXFA = The document contains a \"XML Forms Architecture\" form with a fixed layout (static). * dynamicXFA = The document contains a \"XML Forms Architecture\" form with an adaptable/interactive layout (dynamic).
        Returns:
        formType
      • getNeedAppearances

        @Nullable
        public @Nullable Boolean getNeedAppearances()
        When set to \"true\" the displaying Application shall generate appearances for all widgets defining the document's form.
        Returns:
        needAppearances
      • setNeedAppearances

        public void setNeedAppearances​(Boolean needAppearances)
      • getObjectKey

        @Nullable
        public @Nullable String getObjectKey()
        The object ID of the form. **Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.
        Returns:
        objectKey
      • setObjectKey

        public void setObjectKey​(String objectKey)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object