< Day Day Up > |
Thumbnail the cover or rasterize the entire document . You might sometimes need to convert PDF to other graphics formats. You can easily add a "Print to Image" printer by following [Hack #39] and changing a few ingredients . Alternatively, rasterize your PDF documents using Adobe Acrobat or Photoshop. Because Photoshop gives you the most power, you might prefer to "Print to PDF" and then open these pages in Photoshop. 4.15.1 Install a PNG (or JPEG or TIFF) PrinterThe procedure for creating a bitmap (e.g., TIFF, JPEG, PNG) printer is the same as the procedure for creating the PDF printer in [Hack #39] . The configuration is just a little different. In this example, we'll configure a PNG printer, but you just as easily can create a JPEG or TIFF printer. The DEVICE option determines what gets created. We discuss alternative devices a little later. Follow the PDF Printer instructions, except:
4.15.1.1 "Print to Image" devices and optionsThe documentation that comes with Ghostscript ( C:\gs\gs8.14\doc\index.htm ) explains the available output devices ( Devices.htm ) and general options ( Use.htm ) that you can use in the configuration file. Tables Table 4-8 and Table 4-9 provide a quick, abbreviated reference to give you a glimpse of what's possible. Table 4-8. Some Ghostscript bitmap devices
Table 4-9. Some Ghostscript bitmap options
4.15.1.2 Image output filenamesWhen printing a multipage document to one of these bitmap printers, the output filename must include the %d page number variable so that each page gets a unique filename. To pad this variable with three leading zeros, use %03d . On the Windows command line, the % must be represented by %% . Here are some example filenames that you might enter into the Save As . . . dialog box:
4.15.2 Acrobat: Save As ImageBeginning with Acrobat 5, you can open a PDF and then Save As . . . to JPEG, PNG, or TIFF image files. From the Save As . . . dialog, click the Settings . . . button to configure image options. You can set the image resolution, color space, and compression, among other things. 4.15.3 Photoshop: Open PDFPhotoshop is an ideal place to manipulate bitmaps, so it makes sense to open your PDF right in Photoshop. If your original document isn't a PDF, print one using Acrobat Distiller or our GS Pdf Printer [Hack #39] . Open it in Photoshop, then Save As . . . to whatever format you want. 4.15.4 Mac OS X: PreviewAs mentioned in [Hack #2] , the Preview application that comes with Mac OS X lets you open PDF files and save them in a variety of graphics formats. |
< Day Day Up > |