Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to add a "printer" under Linux that would automatically print-to-file to a specific folder and default to PDF. The idea being that I could one-click-print documents for printing later in the day when I had access to a printer. File names don't matter in this case.

Is this possible to do? I am willing to write some code to make this happen.

share|improve this question
up vote 2 down vote accepted

Yes it is possible if you are using cups. You usually need separate package cups-pdf. You can then setup a virtual PDF printer in CUPS admin (http://localhost:631) which will place PDF files in /var/spool/cups-pdf/<USER>

share|improve this answer
This is what I wanted. Except for me under Linux Mint the directory was /home/<USER>/PDF – Usagi Mar 16 '14 at 0:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.