On May 8, 5:32 am, Karl Tomlinson <mozn...@karlt.net> wrote: > On Tue, 5 May 2009 02:50:13 -0700 (PDT), krithika wrote: > > Iam generating PDF using Firefox3.But when I try to extract image from > > this PDF using PDFBox or other similar packages, It fails. > > > On further analysis I found that pdfimage tool of linux extracts these > > images as ppm. > > > My Questions are: > > > 1. Why are images of "Firefox generated PDF" not extractable as jpeg > > or png? > > 2. Is there any setting which can make this happen? > > Using ImageMagick, > > convert image.ppm image.png > > will convert without loss. > > I don't know whether cairo's PDF output may contain images in DCT > format, but, if so, "pdfimages -j firefox.pdf" will extract these > as JPEG files. (pdfimages comes with/from xpdf.)
Thanks for your reply. My clients using the cairo generated PDF would like the images extracted with tools like PDFBOX , Aspose or itext.They are not ok with ppm format and then converting them from ppm to png.Images of pdf from cairo are all in non-DCT format. How do I make images of cairo generated PDF in DCT format? Any help in this regard is highly appreciated. regards, Krithi _______________________________________________ dev-tech-layout mailing list dev-tech-layout@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-layout