thanks very much :-) using java 1.6.0_27 solved the problem
lmpmbernardo wrote: > > I confirm that the error exists with java 1.5.0_22. So I think if you > upgrade it should go away. > > On Fri, Nov 25, 2011 at 10:33 AM, Luis Bernardo <[email protected]> > wrote: >> 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 <[email protected]> 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 <[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] >>>> >>>> >>>> >>> >>> -- >>> 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: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://old.nabble.com/Error-when-embedding-PNG-with-iTXt-metadata-%28text-international%29-tp32875848p32876032.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]
