Class PdfVersion

java.lang.Object
com.itextpdf.kernel.pdf.PdfVersion
All Implemented Interfaces:
Comparable<PdfVersion>

public class PdfVersion extends Object implements Comparable<PdfVersion>
This class represents all official PDF versions.
  • Field Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toPdfName

      public PdfName toPdfName()
    • fromString

      public static PdfVersion fromString (String value)
      Creates a PdfVersion class from a String object if the specified version can be found.
      Parameters:
      value - version number
      Returns:
      PdfVersion of the specified version
    • fromPdfName

      public static PdfVersion fromPdfName (PdfName name)
      Creates a PdfVersion class from a PdfName object if the specified version can be found.
      Parameters:
      name - version number
      Returns:
      PdfVersion of the specified version
    • compareTo

      public int compareTo (PdfVersion o)
      Specified by:
      compareTo in interface Comparable<PdfVersion>
    • equals

      public boolean equals (Object obj)
      Overrides:
      equals in class Object