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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
