Class OutputProfile.Extension

  • Enclosing class:
    OutputProfile

    public static class OutputProfile.Extension
    extends Object
    Describes an extension to the PDF specification, as recorded in the "Extensions" item of the PDF catalog.
    Since:
    2.27.2
    See Also:
    OutputProfile.getExtensions()
    • Constructor Detail

      • Extension

        public Extension​(String prefix,
                         String baseVersion,
                         int level,
                         String url,
                         String revision)
        Create a new Extension
        Parameters:
        prefix - the prefix, which should be a four-letter value
        baseVersion - the base version, which must be "1.7" or "2.0"
        level - the level
        url - the URL (optional)
        revision - the revision (optional)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getPrefix

        public String getPrefix()
        Return the Extension Prefix
      • getBaseVersion

        public String getBaseVersion()
        Return the Extension Base PDF Version, typicaly "1.7" or "2.0"
      • getURL

        public String getURL()
        Return the Extension URL, or null if not specified
      • getRevision

        public String getRevision()
        Return the Extension Revision, or null if not specified
      • getLevel

        public int getLevel()
        Return the Extension Level