Package org.apache.pdfbox.tools
Class PDFToImage
- java.lang.Object
-
- org.apache.pdfbox.tools.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.
-
-
-
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.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)
-
-