Ok, then what is the java version and OS you are using? If you look at
the error it is not really a fop error but an error in one of the
libraries used by fop. I do not see the error using java 1.6.0_23.

On Fri, Nov 25, 2011 at 9:45 AM, mheigl <michael.he...@yahoo.de> wrote:
>
> I am using "FOP Version 1.0" binary.
>
> Yes, it creates the PDF but it does not embed the image
>
>
> lmpmbernardo wrote:
>>
>> What fop version are you using?
>>
>> I ran your example with both the trunk and the 1.0 version and in both
>> cases the PDF was generated with the image embedded (fop-1.0 throws a
>> warning but still generates the PDF with the image).
>>
>> Luis
>>
>> On Fri, Nov 25, 2011 at 7:47 AM, mheigl <michael.he...@yahoo.de> wrote:
>>>
>>> Hi,
>>>
>>> I've a problem embedding PNGs within a PDF file. When trying to embed
>>> PNGs
>>> which are created (for example) in Adobe Photosop (using Metadata: All)
>>> FOP
>>> throws an error:
>>>
>>> Reason: org.apache.xmlgraphics.image.loader.ImageException: I/O error
>>> while
>>> extracting image metadata: Error reading PNG metadata (see position
>>> 41:110)
>>>
>>> It seems the problem is due to "iTXt" metadata entries - as soon as there
>>> is
>>> any "iTXt" metadata entry in the PNG the error is thrown. When I change
>>> "iTXt" to "tEXt" FOP creates the PDF and embeds the image
>>>
>>> I've attached a demo .fo and .png file
>>>
>>> http://old.nabble.com/file/p32875848/itxt.zip itxt.zip
>>>
>>> Thanks,
>>> Michael
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Error-when-embedding-PNG-with-iTXt-metadata-%28text-international%29-tp32875848p32875848.html
>>> Sent from the FOP - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Error-when-embedding-PNG-with-iTXt-metadata-%28text-international%29-tp32875848p32875936.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to