By taking advantage of some free utilities, you can easily create PDFs from Word files without shelling out nearly $300 for the full version of Adobe Acrobat. The Ghostscript utility, a freeware program available for any platform, can create PDFs from PostScript files. PostScript is a page-description language understood by most printers, and it is usually the format your files are converted to behind the scenes when you send them to your printer.
From Word, you can print your document to a file instead of to a printer; the file that's created will likely be a PostScript file if the printer driver you use is for a PostScript-compatible printer. That means you can use Ghostscript to create a PDF from the file.
To see whether your printer is a PostScript printer, print a small document to file (select File > Print and check the "Print to file" box), then open the file in a text editor such as Notepad. Though Word will give the file a .prn
extension, the file will still likely be a PostScript file. PostScript files will have a line beginning with the text %!PS
near the top of the file, as shown in figure 6.
Figure 6: A PostScript file viewed in a text editor.
If you don't have a PostScript printer, don't worry; printer drivers are available from many printer manufacturers. For example, one such printer driver
is available from Hewlett-Packard. Since you're using the driver only to print to files, you don't need the actual printer.
Once you've located or installed a PostScript printer or printer driver, you can use Ghostscript, Ghostview, and GhostWord together to create PDFs from Word files. Getting Ghostscript and GSview
You can download Ghostscript free from the University of Wisconsin's Web site
. Ghostscript itself is a complicated command-line program that can be hard for novices to use. Fortunately, the site also has information on where to obtain a viewer to accompany Ghostscript, such as the free GSview viewer
. GSview provides a graphical interface to Ghostscript and can be used to view PostScript, PDF, and other file types. GSview is free to use, but you're asked to register the software for $25. If you choose not to register, you'll have to dismiss a reminder dialog each time you launch the program. You won't need GSview to run this hack, but it's a handy tool to have for viewing PostScript files. Getting GhostWord
GhostWord is a Ghostscript interface that integrates with Word. It adds a toolbar button to Word that launches the GhostWord GUI, shown in figure 7. Use the GUI to convert the currently active Word document to a full-featured PDF. You can also run the GUI from outside of Word. GhostWord even has a command-line interface.
Figure 7: The GhostWord interface.
GhostWord can add bookmarks, links, metadata, and display settings to a PDF. It also manages your Ghostscript settings. Select a hard-coded Ghostscript profile from the "Optimize PDF for" drop-down box or tweak Ghostscript settings individually under the Converter Settings tab. GhostWord is distributed free of charge