Re: How to automatically figuring out the optimal resolution for a pdf file?
"Wolfgang Hugemann" <[email protected]> Wed, 27 Apr 2011 09:28:55 +1000
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <20110427092855.761c0a55@wraith> |
> 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? We do it about once a day over here; it functions reliably. I don't know about the details, but PDF is ASCII-based. So you can even extract the streams yourself by opening the PDF in an ASCII editor, looking for a stream that you know to be, say, a JPEG and extract it. At http://www.unfallrekonstruktion.de/imagemagick/BMW.pdf you'll find a PDF i have just generated. You can extract the part between "stream" and "endstream" and save it as a JPEG -- it is a simple as this (at least on my Windows computer); I've just tried. Wolfgang Hugemann