public interface PdfDocumentWrapper extends PDFownerInterface
Modifier and Type | Method and Description |
---|---|
void |
close() |
float |
getDpi(double factor) |
String |
getFileName() |
List<GlyphWrapper> |
getGlyphsOfPage(int pageIndex) |
List<ImageWrapper> |
getImagesOfPage(int pageIndex) |
int |
getNumberOfPages() |
Dimension |
getSizeOfPage(int pageIndex) |
String |
getTextOfPage(int pageIndex,
List<Rectangle> segments) |
void |
loadPdf(String fileName) |
BufferedImage |
renderImageWithDPI(int pageIndex,
float dpi) |
BufferedImage |
renderImageWithDPIForBackground(int pageIndex,
float dpi) |
getPage
String getFileName()
void loadPdf(String fileName) throws IOException
IOException
int getNumberOfPages()
BufferedImage renderImageWithDPI(int pageIndex, float dpi)
BufferedImage renderImageWithDPIForBackground(int pageIndex, float dpi)
String getTextOfPage(int pageIndex, List<Rectangle> segments) throws IOException
IOException
void close() throws IOException
IOException
Dimension getSizeOfPage(int pageIndex)
float getDpi(double factor)
List<ImageWrapper> getImagesOfPage(int pageIndex) throws IOException
IOException
List<GlyphWrapper> getGlyphsOfPage(int pageIndex) throws IOException
IOException
Copyright © 2020 Fran Rojas. All rights reserved.