cups-pdf and incompatible PDF files from Ubuntu 9.10
Friday, March 5, 2010 12:49:10 AM
The easiest way of producing PDF files from any application that does not support this itself, is to install the cups-pdf "printer" that appears in any application as if it were a normal printer, but in reality prints to a file.
Installing cups-pdf is simple, either from the command line or from the software installer in the menu.
user@computer:~$ sudo aptitude install cups-pdf
However, I stumbled over an interesting quirk today. Normally cups-pdf will simply output a file to your home folder, in a subdirectory called PDF. These files can be opened by pretty much anything - from a Windows PC to a Canon office printer with the "Direct Print" function in the web UI.
Many programs let you choose a "Print to File" option in the print dialog box. Choosing this option with cups-pdf results in PDF files that can be opened in some applications such as evince and Google Docs, but not in others like the official Adobe Acrobat Reader on Windows Vista/7. The lesson here is don't use "Print to File" and just let cups-pdf write files into your home directory.

Michael Linktheoperalink # Friday, March 5, 2010 2:58:02 AM
Architecture: amd64
Version: 2.5.0-8ubuntu1