Class PdfVersionImp

java.lang.Object
com.lowagie.text.pdf.internal.PdfVersionImp
All Implemented Interfaces:
PdfVersion

@Deprecated public class PdfVersionImp extends Object implements PdfVersion
Deprecated.
Stores the PDF version information, knows how to write a PDF Header, and how to add the version to the catalog (if necessary).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Deprecated.
    Indicates if we are working in append mode.
    protected PdfName
    Deprecated.
    The version that will be written to the catalog.
    protected PdfDictionary
    Deprecated.
    The extensions dictionary.
    static final byte[][]
    Deprecated.
    Contains different strings that are part of the header.
    protected char
    Deprecated.
    The version that was or will be written to the header.
    protected boolean
    Deprecated.
    Indicates if the header was already written.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Adds a developer extension to the Extensions dictionary in the Catalog.
    void
    Deprecated.
    Adds the version to the Catalog dictionary.
    byte[]
    getVersionAsByteArray(char version)
    Deprecated.
    Returns the version as a byte[].
    getVersionAsName(char version)
    Deprecated.
    Returns the PDF version as a name.
    void
    setAppendmode(boolean appendmode)
    Deprecated.
    Sets the append mode.
    void
    setAtLeastPdfVersion(char version)
    Deprecated.
    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)
    Deprecated.
    If the PDF Header hasn't been written yet, this changes the version as it will appear in the PDF Header.
    void
    Deprecated.
    Sets the PDF version as it will appear in the Catalog.
    void
    Deprecated.
    Writes the header to the OutputStreamCounter.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • headerWasWritten

      protected boolean headerWasWritten
      Deprecated.
      Indicates if the header was already written.
    • appendmode

      protected boolean appendmode
      Deprecated.
      Indicates if we are working in append mode.
    • header_version

      protected char header_version
      Deprecated.
      The version that was or will be written to the header.
    • catalog_version

      protected PdfName catalog_version
      Deprecated.
      The version that will be written to the catalog.
    • extensions

      protected PdfDictionary extensions
      Deprecated.
      The extensions dictionary.
      Since:
      2.1.6
  • Constructor Details

    • PdfVersionImp

      public PdfVersionImp()
      Deprecated.
  • Method Details

    • setPdfVersion

      public void setPdfVersion(char version)
      Deprecated.
      Description copied from interface: PdfVersion
      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.
      Specified by:
      setPdfVersion in interface PdfVersion
      Parameters:
      version - a character representing the PDF version
      See Also:
    • setAtLeastPdfVersion

      public void setAtLeastPdfVersion(char version)
      Deprecated.
      Description copied from interface: PdfVersion
      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.
      Specified by:
      setAtLeastPdfVersion in interface PdfVersion
      Parameters:
      version - a character representing the PDF version
      See Also:
    • setPdfVersion

      public void setPdfVersion(PdfName version)
      Deprecated.
      Description copied from interface: PdfVersion
      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.
      Specified by:
      setPdfVersion in interface PdfVersion
      Parameters:
      version - the PDF name that will be used for the Version key in the catalog
      See Also:
    • setAppendmode

      public void setAppendmode(boolean appendmode)
      Deprecated.
      Sets the append mode.
      Parameters:
      appendmode - Boolean that indicates if we are working in append mode.
    • writeHeader

      public void writeHeader(OutputStreamCounter os) throws IOException
      Deprecated.
      Writes the header to the OutputStreamCounter.
      Parameters:
      os - the OutputStreamCounter
      Throws:
      IOException - thrown when an I/O operation goes wrong
    • getVersionAsName

      public PdfName getVersionAsName(char version)
      Deprecated.
      Returns the PDF version as a name.
      Parameters:
      version - the version character.
      Returns:
      a PdfName that contains the version
    • getVersionAsByteArray

      public byte[] getVersionAsByteArray(char version)
      Deprecated.
      Returns the version as a byte[].
      Parameters:
      version - the version character
      Returns:
      a byte array containing the version according to the ISO-8859-1 codepage.
    • addToCatalog

      public void addToCatalog(PdfDictionary catalog)
      Deprecated.
      Adds the version to the Catalog dictionary.
      Parameters:
      catalog - The PdfDictionary to add the version to
    • addDeveloperExtension

      public void addDeveloperExtension(PdfDeveloperExtension de)
      Deprecated.
      Description copied from interface: PdfVersion
      Adds a developer extension to the Extensions dictionary in the Catalog.
      Specified by:
      addDeveloperExtension in interface PdfVersion
      Parameters:
      de - an object that contains the extensions prefix and dictionary
      Since:
      2.1.6
      See Also: