Re: How to automatically figuring out the optimal resolution for a pdf file?

Anthony Thyssen <[email protected]> Wed, 27 Apr 2011 09:28:37 +1000
Newsgroups gmane.comp.video.image-magick.user
Message-ID <20110427092837.4f7b15c2@wraith>
On Mon, 25 Apr 2011 20:54:16 +0200
[email protected] wrote:
| Theoretically, a PDF might contain raster images of various resolution. 
| Practically speaking, however, this will seldomly be the case. In the 
| easiest case, a PDF will just binds(scanned) TIFFs of one and the same 
| resolution. If the PDF is produced by a printer driver or distilled fom 
| a PostScript file, one will generally define fixed resolutions for 
| raster images and black and white images.
| 
| So I guess there generally *is* something like an ideal resultion for an 
| PDF when being converted to a raster image. But this is more of a 
| Ghostscript problem than a problem of ImageMagick.
| 
| If your PDF just binds raster images, you should give pdfimages from 
| Xpdf a try, which losslessly extracts them from the PDF, extracting the 
| accordings streams.
| 
| Wolfgang Hugemann

I did not know that Xpdf can extract the images from PDF losslessly.
Hmmm the package does not even require the use of ghostscript!
I wonder how it is processing PDF files?

Can you give us an example of extracting exact images from a PDF?


  Anthony Thyssen ( System Programmer )    <[email protected]>
 --------------------------------------------------------------------------
  At 300 dpi you can tell she's wearing a swimsuit.
  At 600 dpi you can tell it's wet.
  At 1200 dpi you can tell it's painted on.
  I suppose at 2400 dpi you can tell if the paint is giving her a rash.
                                                      -- Joshua R. Poulson
 --------------------------------------------------------------------------
   Anthony's Castle     http://www.ict.griffith.edu.au/anthony/