Yesterday , I wanted to send some web pages to a friend . I decided that I will make a PDF document and send the pdf. I looked around on internet for information about a pdf printer. Several sources pointed to cups-pdf.
I installed cups-pdf with,
$ sudo apt-get install cups-pdf
Under System->Administration ->printing a new entry came along with my HP 1007. See the screen shot below.


I tried to print my webpage. I got the following screen from firefox.


It seems cups-pdf is failing. I tried to print, but nothing turned out. I then looked at /etc/cups/cups-pdf.conf
Under path setting it is saying

### Key: Out##  CUPS-PDF output directory##  special qualifiers:##     ${HOME} will be expanded to the user's home directory##     ${USER} will be expanded to the user name##  in case it is an NFS export make sure it is exported without##  root_squash!### Default: /var/spool/cups-pdf/${USER}

Out ${HOME}/PDF

So, the pdfs are supposed to appear under PDF directory in my home folder.
I looked for PDF directory. It was not there. I created it manually and tried printing again.
The ubuntu 9.04 notifier said ” Print job completed”. I looked at PDF folder and the printout was there. :)

So, if you are trying to make PDF documents with cups-pdf don’t forget to create an output directory (named PDF ) in your home folder.

See the screen shot below. It shows the screen when printing to a working pdf printer.

Tags: