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.)
_______________________________________________
dev-tech-layout mailing list
dev-tech-layout@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to