Class PDFToImage


  • public final class PDFToImage
    extends java.lang.Object
    Convert a PDF document to an image.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String COLOR  
      private static java.lang.String CROPBOX  
      private static java.lang.String DPI  
      private static java.lang.String END_PAGE  
      private static java.lang.String FORMAT  
      private static java.lang.String IMAGE_TYPE  
      private static java.lang.String OUTPUT_PREFIX  
      private static java.lang.String PAGE  
      private static java.lang.String PASSWORD  
      private static java.lang.String PREFIX  
      private static java.lang.String QUALITY  
      private static java.lang.String RESOLUTION  
      private static java.lang.String START_PAGE  
      private static java.lang.String SUBSAMPLING  
      private static java.lang.String TIME  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PDFToImage()
      private constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void changeCropBox​(PDDocument document, float a, float b, float c, float d)  
      private static java.lang.String getImageFormats()  
      static void main​(java.lang.String[] args)
      Infamous main method.
      private static void usage()
      This will print the usage requirements and exit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PDFToImage

        private PDFToImage()
        private constructor.
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Infamous main method.
        Parameters:
        args - Command line arguments, should be one and a reference to a file.
        Throws:
        java.io.IOException - If there is an error parsing the document.
      • usage

        private static void usage()
        This will print the usage requirements and exit.
      • getImageFormats

        private static java.lang.String getImageFormats()
      • changeCropBox

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