pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkühler (JIRA) <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-767) CLONE -convertToImage seems to invert colors
Date Sun, 13 May 2012 07:39:01 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274225#comment-13274225
] 

Andreas Lehmkühler commented on PDFBOX-767:
-------------------------------------------

@Ian
Please don't hijack already closed issue. On one hand already closed issue won't get much
attention as the are already closed and on the other hand we shouldn't reopen it as your issue
is not directly related to this one (this one is about converting pdfs to images and yours
about extracting images of a pdf).

Create a new issue and attach the pdf in question to it. Feel free to ask for help if you
still can't attach it to the issue.
                
> CLONE -convertToImage seems to invert colors
> --------------------------------------------
>
>                 Key: PDFBOX-767
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-767
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0-incubator, 1.0.0, 1.2.0, 1.3.1
>         Environment: any
>            Reporter: Roland Quast
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.6.0
>
>         Attachments: tast_bb.pdf
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message