Since Ubuntu 7.10, a PDF printer has been installed by default. The behavior of this feature has changed from Ubuntu 7.10, instead of asking for a name and location for the PDF, Ubuntu 8.04 will guess a name for the document and place the file in a folder called PDF in your home directory.
- Open the file
/etc/cups/cups-pdf.conf
as the root user:gksu gedit /etc/cups/cups-pdf.conf
- The lines starting with the “#” character are comments. The first un-commented line, which specifies the output directory, should look something like this:
Out ${HOME}/PDF
- Change this line to the path you want your PDFs saved to. This will save them to the current users’s desktop:
Out ${HOME}/Desktop
- Save and close the text editor. Now you just need to restart CUPS for the change to take effect.
sudo /etc/init.d/cups restart
Changing the output directory dosn’t work in some cases because of apparmor
The default (and therefore allowed by apparmor) place for created pdf's is $(HOME)/PDF. If this directory is not used (or is a symlink, just to add this), that means you've changed the default path in cups-pdf.conf, you'll need to apply this changes in the /etc/apparmor.d/usr.sbin.cupsd file too.
you'll need to change the lines:@{HOME}/PDF/ rw,
@{HOME}/PDF/* rw,@{HOME}/PDF/ rw
@{HOME}/PDF/*rw,
into:@{HOME}/Desktop/ rw
@{HOME}/Desktop/*rw,
in the mentioned usr.sbin.cupsd file and restart the apparmor-service.sudo /etc/init.d/apparmor restart
then restart the cups service,
sudo /etc.init.d/cups restart