Package org.apache.pdfbox.tools
Class PDFToImage
- java.lang.Object
-
- org.apache.pdfbox.tools.PDFToImage
-
public final class PDFToImage extends java.lang.ObjectConvert a PDF document to an image.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCOLORprivate static java.lang.StringCROPBOXprivate static java.lang.StringDPIprivate static java.lang.StringEND_PAGEprivate static java.lang.StringFORMATprivate static java.lang.StringIMAGE_TYPEprivate static java.lang.StringOUTPUT_PREFIXprivate static java.lang.StringPAGEprivate static java.lang.StringPASSWORDprivate static java.lang.StringPREFIXprivate static java.lang.StringQUALITYprivate static java.lang.StringRESOLUTIONprivate static java.lang.StringSTART_PAGEprivate static java.lang.StringSUBSAMPLINGprivate static java.lang.StringTIME
-
Constructor Summary
Constructors Modifier Constructor Description privatePDFToImage()private constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidchangeCropBox(PDDocument document, float a, float b, float c, float d)private static java.lang.StringgetImageFormats()static voidmain(java.lang.String[] args)Infamous main method.private static voidusage()This will print the usage requirements and exit.
-
-
-
Field Detail
-
PASSWORD
private static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
-
START_PAGE
private static final java.lang.String START_PAGE
- See Also:
- Constant Field Values
-
END_PAGE
private static final java.lang.String END_PAGE
- See Also:
- Constant Field Values
-
PAGE
private static final java.lang.String PAGE
- See Also:
- Constant Field Values
-
IMAGE_TYPE
private static final java.lang.String IMAGE_TYPE
- See Also:
- Constant Field Values
-
FORMAT
private static final java.lang.String FORMAT
- See Also:
- Constant Field Values
-
OUTPUT_PREFIX
private static final java.lang.String OUTPUT_PREFIX
- See Also:
- Constant Field Values
-
PREFIX
private static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
COLOR
private static final java.lang.String COLOR
- See Also:
- Constant Field Values
-
RESOLUTION
private static final java.lang.String RESOLUTION
- See Also:
- Constant Field Values
-
DPI
private static final java.lang.String DPI
- See Also:
- Constant Field Values
-
QUALITY
private static final java.lang.String QUALITY
- See Also:
- Constant Field Values
-
CROPBOX
private static final java.lang.String CROPBOX
- See Also:
- Constant Field Values
-
TIME
private static final java.lang.String TIME
- See Also:
- Constant Field Values
-
SUBSAMPLING
private static final java.lang.String SUBSAMPLING
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionInfamous 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)
-
-