king514jy / purepdf

Automatically exported from code.google.com/p/purepdf
0 stars 0 forks source link

PNG image file decoding fails #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Copy attached png file to the test suite /assets folder
2. Replace code in ImageTypes.as:
[Embed(source="assets/appicondocsec.png")]
with:
[Embed(source="assets/photoShopExport.png")]
3. run ImageTypes.as 
What is the expected output? What do you see instead?
It should encode all type of png files into a pdf.
Instead error thrown:
file:/E:/flex4_ws/purePDF_Examples/purePDF_Test/bin-debug/ImageTypes.swf    
    Main Thread (Suspended: Error: unknown png filter)  
        org.purepdf.pdf.codec::PngImage/decodePass  
        org.purepdf.pdf.codec::PngImage/decodeIdat  
        org.purepdf.pdf.codec::PngImage/getImage    
        org.purepdf.pdf.codec::PngImage$/getImage   
        org.purepdf.elements.images::ImageElement$/getInstance  
        ImageTypes/execute  

What version of the product are you using? On what operating system?
purePDF_0.75.20100527,
tried on Win XP, and on Vista, both fails.

Please provide any additional information below.

Tested with various png files, that were created by me or someone else,
and it seems to fail every time. The one provided, is a scaled up version of 
the original test png file from. I saved it photoshop.

Original issue reported on code.google.com by balazsCa...@googlemail.com on 27 Nov 2010 at 11:30

Attachments:

GoogleCodeExporter commented 8 years ago
Same here! Need urgent a solution to solve this issue

Original comment by clabt...@gmail.com on 1 Dec 2010 at 8:55

GoogleCodeExporter commented 8 years ago
fixed with purePDF 0.75

Original comment by alessand...@gmail.com on 14 Jan 2011 at 8:03