Matthias is right. The PNGs need to be decoded and re-encoded. Some time ago I've made experiments to embed PNG files without re-encoding them but I haven't gotten that to work. Somehow the data was not quite right so Acrobat barked at me with its usual unhelpful error messages. :-( At the moment the only data formats we can embed without re-encoding are JPEG and CCITT Group 3 and 4.
BTW, inside PDF there's no such thing as PNG or GIF. PDF uses its own representation of bitmap images. So that means we always have to interpret an image file and convert it to PDFs internal objects. On 13.08.2010 14:37:44 Matthias Reischenbacher wrote: > Hi Adam, > > I think the cause of the 30sec delay is that PNGs aren't embedded > natively into the PDF and they must be transcoded first. > It would be really nice, if the FOP-Team could fix this issue, since > this problem also occurs when using PNGs inside SVGs and converting PNGs > to JPEGs isn't so easy in this case. > > Regards, > Matthias > > On 13.08.2010 08:41, Adam Kovacs wrote: > > Hi there! > > > > Im currently having a strange effect. I use PNG images in my XSL to > > create PDFs. > > I have real performance problems (the XSL is quite complex and looks > > fancy with many images) > > > > If I use PNGs it takes 30s to create a PDF. > > If I use JPGs it takes only 2,5s to create the same PDF (JPGs created > > from the PNGs) > > > > Im creating the PDFs over the FOP_IF and with concatenation of more > > FOP_IF files. > > > > Can anybody explain this to me? I would need to use PNGs as the printer > > likes them more. > > Is there any other format which is even more faster? (Giff or anything > > else?) > > > > Thanks in advance!!! > > > > *Adam * > > *Using FOP 1.0* > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > > signature database 5363 (20100813) __________ > > > > The message was checked by ESET NOD32 Antivirus. > > > > http://www.eset.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
