[ 
https://issues.apache.org/jira/browse/PDFBOX-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jukka Zitting resolved PDFBOX-329.
----------------------------------

    Resolution: Duplicate

Works fine in 1.3.1

> ExtractImages (hence PDXObjectImage) produces wrong PNGs.
> ---------------------------------------------------------
>
>                 Key: PDFBOX-329
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-329
>             Project: PDFBox
>          Issue Type: Bug
>            Priority: Minor
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1843491
> Originally submitted by michel-onoff on 2007-12-03 09:01.
> ExtractImages (and hence PDXObjectImage) sometimes produces wrong PNGs.
> When getRGBImage() is called on a PDXObjectImage, a faulty BufferedImage is 
> created.
> The same file is opened and displayed correctly with other tools like Acrobat 
> Reader and GSView, so the file is not corrupt.
> I attach the .pdf. You can view its real content with Acrobat Reader and try 
> to extract the image by running
> java -cp PDFBox-<version>.jar <file.pdf>
> I tried both the release 0.7.3 and the last nightly build of 20071203
> [attachment on SourceForge]
> http://sourceforge.net/tracker/download.php?group_id=78314&atid=552832&aid=1843491&file_id=257078
> pdf100.pdf (application/save-as), 11814 bytes
> [comment on SourceForge]
> Originally sent by michel-onoff.
> Logged In: YES 
> user_id=1951253
> Originator: YES
> I retried again with the newest nightly build and the attached pdf100.pdf 
> file.
> The extracted image is still wrong.
> The pdf contains a black&white image compressed with Flate and ASCII85 and no 
> predictor.
> Any other viewer I tried (including AcroRead, GSView, Cabaret, jPedal) have 
> no troubles.
> I have all jai libraries installed as well.
> Any idea?
> This is the command I use
> java -cp PDFBox-0.7.4-dev-20080214.jar org.pdfbox.ExtractImages pdf100.pdf
> It produces a PNG with wrong content.
> [comment on SourceForge]
> Originally sent by michel-onoff.
> Logged In: YES 
> user_id=1951253
> Originator: YES
> I retried with the newest nightly build and the attached pdf100.pdf file. The 
> extracted image is still wrong.
> Any idea?
> java -cp PDFBox-0.7.4-dev-20080113.jar org.pdfbox.ExtractImages pdf100.pdf

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to