Package org.apache.pdfbox.tools
Class PDFToImage
java.lang.Object
org.apache.pdfbox.tools.PDFToImage
Convert a PDF document to an image.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
changeCropBox
(PDDocument document, float a, float b, float c, float d) private static String
static void
Infamous main method.private static void
usage()
This will print the usage requirements and exit.
-
Field Details
-
PASSWORD
- See Also:
-
START_PAGE
- See Also:
-
END_PAGE
- See Also:
-
PAGE
- See Also:
-
IMAGE_TYPE
- See Also:
-
FORMAT
- See Also:
-
OUTPUT_PREFIX
- See Also:
-
PREFIX
- See Also:
-
COLOR
- See Also:
-
RESOLUTION
- See Also:
-
DPI
- See Also:
-
QUALITY
- See Also:
-
CROPBOX
- See Also:
-
TIME
- See Also:
-
SUBSAMPLING
- See Also:
-
-
Constructor Details
-
PDFToImage
private PDFToImage()private constructor.
-
-
Method Details
-
main
Infamous main method.- Parameters:
args
- Command line arguments, should be one and a reference to a file.- Throws:
IOException
- If there is an error parsing the document.
-
usage
private static void usage()This will print the usage requirements and exit. -
getImageFormats
-
changeCropBox
-