Class Version

java.lang.Object
org.apache.pdfbox.tools.Version
All Implemented Interfaces:
Callable<Integer>, picocli.CommandLine.IVersionProvider

final class Version extends Object implements Callable<Integer>, picocli.CommandLine.IVersionProvider
A simple command line utility to get the version of PDFBox.
  • Field Details

    • SYSOUT

      private final PrintStream SYSOUT
    • spec

      picocli.CommandLine.Model.CommandSpec spec
  • Constructor Details

    • Version

      public Version()
      Constructor.
  • Method Details

    • getVersion

      public String[] getVersion()
      Get the version of PDFBox or unknown if it is not known.
      Specified by:
      getVersion in interface picocli.CommandLine.IVersionProvider
      Returns:
      The version of pdfbox that is being used.
    • main

      public static void main(String[] args)
      This will print out the version of PDF to System.out.
      Parameters:
      args - Command line arguments.
    • call

      public Integer call()
      Specified by:
      call in interface Callable<Integer>