PDF printing under ubuntu

To install:

sudo apt-get install cups-pdf

There are a couple of pitfalls:

  1. Getting unreadable PDF
    • Due to wrongly selecting ☒ print to file (which creates an EPS, not a pdf but can be read with some pdf tools
    • Just don’t be tempted to check this box!
  2. Changing the print directory
    • If you don’t enable it in apparmor then no PDFs!
sudo vi /etc/cups/cups-pdf.conf #and change the following options
#Out ${HOME}/PDF
Out ${HOME}/Dropbox/pdfreports

Label 2
  • But this won’t work unless apparmor allows it:
sudo /etc/apparmor.d/usr.sbin.cupsd #and enable cups to print to locations
  @{HOME}/PDF/ rw,
  @{HOME}/PDF/* rw,
  @{HOME}/Dropbox/pdfreports/ rw,
  @{HOME}/Dropbox/pdfreports/* rw,