Description
The pdfbox support team asked me to post this message on this forum so attachments could be seen
I have a pdf document that has a white background with black text. It
appears after I make the call to convertToImage the colors are reversed. A
black background with white text
pdDocument = PDDocument.load(new ByteArrayInputStream(aContent));
List<PDPage> documentPageList = pdDocument.getDocumentCatalog().getAllPages();
for(int i=0; i<documentPageList.size(); ++i) {
PDPage aPage = documentPageList.get;
for (int x=1; x < 14; x++) {
BufferedImage tempImage = convertToImage(x, (2 * 72),aPage);
ImageIO.write(tempImage,"jpeg", new File("c:
tmp
page-" + x + ".jpeg"));
}
}
Attachments
Attachments
Issue Links
- is cloned by
-
PDFBOX-766 CLONE -convertToImage seems to invert colors
- Closed
-
PDFBOX-767 CLONE -convertToImage seems to invert colors
- Closed
- relates to
-
PDFBOX-665 Photometric interpretation incorrect on G3 encoded image embedded in PDF
- Closed