Class PDFToImage

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Integer>

    public final class PDFToImage
    extends java.lang.Object
    implements java.util.concurrent.Callable<java.lang.Integer>
    Convert a PDF document to an image.
    • Field Detail

      • SYSERR

        private final java.io.PrintStream SYSERR
      • password

        private java.lang.String password
      • imageFormat

        private java.lang.String imageFormat
      • outputPrefix

        private java.lang.String outputPrefix
      • page

        private int page
      • startPage

        private int startPage
      • endPage

        private int endPage
      • dpi

        private int dpi
      • quality

        private float quality
      • cropbox

        private int[] cropbox
      • showTime

        private boolean showTime
      • subsampling

        private boolean subsampling
      • infile

        private java.io.File infile
    • Constructor Detail

      • PDFToImage

        public PDFToImage()
        Constructor.
    • Method Detail

      • main

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

        public java.lang.Integer call()
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.Integer>
      • changeCropBox

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