Interface PdfVersion

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addDeveloperExtension​(PdfDeveloperExtension de)
      Adds a developer extension to the Extensions dictionary in the Catalog.
      void setAtLeastPdfVersion​(char version)
      If the PDF Header hasn't been written yet, this changes the version as it will appear in the PDF Header, but only if the parameter refers to a higher version.
      void setPdfVersion​(char version)
      If the PDF Header hasn't been written yet, this changes the version as it will appear in the PDF Header.
      void setPdfVersion​(PdfName version)
      Sets the PDF version as it will appear in the Catalog.
    • Method Detail

      • setPdfVersion

        void setPdfVersion​(char version)
        If the PDF Header hasn't been written yet, this changes the version as it will appear in the PDF Header. If the PDF header was already written to the OutputStream, this changes the version as it will appear in the Catalog.
        Parameters:
        version - a character representing the PDF version
      • setAtLeastPdfVersion

        void setAtLeastPdfVersion​(char version)
        If the PDF Header hasn't been written yet, this changes the version as it will appear in the PDF Header, but only if the parameter refers to a higher version. If the PDF header was already written to the OutputStream, this changes the version as it will appear in the Catalog.
        Parameters:
        version - a character representing the PDF version
      • setPdfVersion

        void setPdfVersion​(PdfName version)
        Sets the PDF version as it will appear in the Catalog. Note that this only has effect if you use a later version than the one that appears in the header. This method ignores the parameter if you try to set a lower version than the one currently set in the Catalog.
        Parameters:
        version - the PDF name that will be used for the Version key in the catalog
      • addDeveloperExtension

        void addDeveloperExtension​(PdfDeveloperExtension de)
        Adds a developer extension to the Extensions dictionary in the Catalog.
        Parameters:
        de - an object that contains the extensions prefix and dictionary
        Since:
        2.1.6