3.5. Cups PDF printer

Install Cups PDF:

1sudo apt install -y cups-pdf

You may change the default output directory ($HOME/PDF/) for something else:

  1. change the output directory in /etc/cups/cups-pdf.conf:

/etc/cups/cups-pdf.conf
1# before
2Out ${HOME}/PDF
3
4# after
5Out ${HOME}/Documents
  1. change the permissions in /etc/apparmor.d/usr.sbin.cupsd:

/etc/apparmor.d/usr.sbin.cupsd
1# before
2@{HOME}/PDF/ rw,
3@{HOME}/PDF/* rw,
4
5# after
6@{HOME}/Documents/ rw,
7@{HOME}/Documents/* rw,
  1. restart the services:

1sudo systemctl restart cups
2sudo systemctl restart apparmor