You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Gaurav.Jain3@cognizant.com (JIRA)" <ji...@apache.org> on 2010/07/28 12:53:18 UTC
[jira] Commented: (PDFBOX-584) convertToImage seems to invert
colors
[ https://issues.apache.org/jira/browse/PDFBOX-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893134#action_12893134 ]
Gaurav.Jain3@cognizant.com commented on PDFBOX-584:
---------------------------------------------------
Same problem exists. I'm still getting image in which color is
different. Just like seeing a negative.
> convertToImage seems to invert colors
> -------------------------------------
>
> Key: PDFBOX-584
> URL: https://issues.apache.org/jira/browse/PDFBOX-584
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 0.8.0-incubator
> Environment: any
> Reporter: Scott Tyriver
> Assignee: Andreas Lehmkühler
> Fix For: 1.2.0
>
> Attachments: original.pdf, page-8.png, PDFBOX584-original1.png
>
>
> 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(i);
> 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"));
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.