Class PDFToImage

java.lang.Object
org.apache.pdfbox.tools.PDFToImage
All Implemented Interfaces:
Callable<Integer>

public final class PDFToImage extends Object implements Callable<Integer>
Convert a PDF document to an image.
  • Field Details

    • SYSERR

      private final PrintStream SYSERR
    • password

      private String password
    • imageFormat

      private String imageFormat
    • outputPrefix

      private String outputPrefix
    • page

      private int page
    • startPage

      private int startPage
    • endPage

      private int endPage
    • imageType

      private ImageType imageType
    • dpi

      private int dpi
    • quality

      private float quality
    • cropbox

      private int[] cropbox
    • showTime

      private boolean showTime
    • subsampling

      private boolean subsampling
    • infile

      private File infile
  • Constructor Details

    • PDFToImage

      public PDFToImage()
      Constructor.
  • Method Details

    • main

      public static void main(String[] args)
      Infamous main method.
      Parameters:
      args - Command line arguments, should be one and a reference to a file.
    • call

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

      private static void changeCropBox(PDDocument document, float a, float b, float c, float d)