Package org.eclnt.ccee.pdf
Class PDF2ImageConverter
java.lang.Object
org.eclnt.ccee.pdf.PDF2ImageConverter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
convertPDFIntoBytesPNG
(byte[] pdfBytes, int dpi) static byte[]
convertPDFIntoBytesPNG
(byte[] pdfBytes, int dpi, int pageIndex, org.apache.pdfbox.rendering.ImageType imageType) static BufferedImage
convertPDFIntoImage
(byte[] pdfBytes, int dpi) static BufferedImage
convertPDFIntoImage
(byte[] pdfBytes, int dpi, int pageIndex, org.apache.pdfbox.rendering.ImageType imageType) static byte[]
convertPDFIntoThumbImagePNG
(byte[] pdfBytes, int width, int height) static byte[]
convertPDFIntoThumbImagePNG
(byte[] pdfBytes, int width, int height, int pageIndex, org.apache.pdfbox.rendering.ImageType imageType) static int
findNumberOfPages
(byte[] pdfBytes)
-
Field Details
-
DPI_THUMB
public static final int DPI_THUMB- See Also:
-
-
Constructor Details
-
PDF2ImageConverter
public PDF2ImageConverter()
-
-
Method Details
-
convertPDFIntoThumbImagePNG
public static byte[] convertPDFIntoThumbImagePNG(byte[] pdfBytes, int width, int height) -
convertPDFIntoThumbImagePNG
public static byte[] convertPDFIntoThumbImagePNG(byte[] pdfBytes, int width, int height, int pageIndex, org.apache.pdfbox.rendering.ImageType imageType) -
convertPDFIntoBytesPNG
public static byte[] convertPDFIntoBytesPNG(byte[] pdfBytes, int dpi) -
convertPDFIntoBytesPNG
public static byte[] convertPDFIntoBytesPNG(byte[] pdfBytes, int dpi, int pageIndex, org.apache.pdfbox.rendering.ImageType imageType) -
convertPDFIntoImage
-
convertPDFIntoImage
public static BufferedImage convertPDFIntoImage(byte[] pdfBytes, int dpi, int pageIndex, org.apache.pdfbox.rendering.ImageType imageType) -
findNumberOfPages
public static int findNumberOfPages(byte[] pdfBytes)
-