But these two methods were both a pain in the . But I found out about the third method. It's very similar, with one major difference. Instead of using images from an external source, it uses PDFs from your local machine. It was developed by Dirk Basecamp of OCamlWiki and is named `ghost script`. Here are some of the differences: You don't need an external image. You have to create them all on your own and include them in your Ghost script. You don't need an imageMagick tool. Furthermore, you can use dread (with the help of the imagemagick command) and Ghost (`ghost –i`) with imageMagick directly. Furthermore, you don't need to install imagemagick or the ghost library. They are available in the GNU library. This method is fast. It can flatten a full PDF with only a few seconds depending on your Mac. You have to create the PDF files on your local machine first. So you need a local PDF viewer. You can either use OpenOffice (and PDF tools such as PDF.app) or Studio, which is a free PDF editor for the Mac OS X. Or, use a free PDF viewer like previewer () ( ) on the command line. You don't have to modify the original files on your machine, like you have to do when using the ImageMagick method. Instead, you can just use Ghost. To use this method, you can either run it as follows: ./ghost script a.pdf b.pdf Or, you can use the `./ghost script` command on a file called a.pdf (or b.pdf) or a.pdf.bmp or b.pdf.jpg. A. The .pdf extension of the name of the document. In the case of a .pdf file (or one that you have opened with previewer or previewer) that you would like to flatten, simply run the command like this:.