JonMifsud
Web Developer & Consultant

Print to PDF with Ubuntu (Linux)

17 March 2013

Like with any other system some time you will need to print to a PDF document to send this to someone else. Ubuntu & linux do not come with a pre-installed PDF printer thus you have to set it up yourself.

Unlike Windows and other Operating systems you do not need to download some special software to allow you to print to pdf, however you are required to install a package which is readily available.

In most installations you can run synaptic or your preferred package manager and install cups-pdf. This will automatically enable your pdf printer, which you can then use to generate your PDFs.

Step by Step Installation.

  1. Open Synaptic package manager & search for cups-pdf

  2. Install this package, by selecting it and clicking install.

or else via terminal

              sudo apt-get install cups-pdf

            

How to use CUPS PDF

  1. Using the PDF printer is quite easy; all you need to do is issue a print command and select the PDF printer from the list.

  2. A PDF of the printed page will then be available under your home folder, in a directory named PDF. /home/user/PDF

  3. Do whatever you would like with the PDF file.

Important to note that the pdf printer uses the Document Name as the file name, this sometimes leads to overwriting of the files, so make sure you rename or move the files appropriately once printed. This way you avoid having to reprint the documents later on.

Written by Jonathan Mifsud

Jonathan Mifsud is a web developer by day and an SEO enthusiast by night. He provides freelance web development and consultancy services and is available for hire. You can get in touch with him on twitter and Google+

Comments

Leave a Comment
Trevor Morrison

Thanks, Jonathan. I discovered your package today and it serves my need well.

Reply

14 Dec 2015 @8:00am

radshop

Thanks! I just used this print utility along with PDF Mod for assembling a billing package that included emails, web documents, spreadsheets, and more. Much easier than the way I used to do it.

Reply

29 Jan 2015 @12:06am

KentG

It has been really helpful. Thank you very much!!

Reply

23 Dec 2014 @8:09pm

Hemant Gupta

Thanks Jonathan for this great helpful post

Reply

07 Dec 2014 @7:26am

Paul Bliss

Sorry I'm late to the party. As others said, it works beautifully. When I was working in software development many years ago, we used the phrase 'elegant solution', which means that it is simple, it works for every option, and it does what it is supposed to do. Your solution is certainly elegant in every respect. Thank you !!

Reply

14 Oct 2014 @6:50pm

Abdul Kahar TK

Cool stuff. Thank you Jonathan. It was simply straightforward.

Reply

11 Oct 2014 @6:41am

jwkhead

Exactly what I've been looking for! Thanks...!

Reply

26 Sep 2014 @3:46pm

jeroen

thanks men, this does the job

Reply

23 Sep 2014 @10:04pm

linux

Super!!! Thanks

Reply

11 Sep 2014 @11:36am

one Ronin

thank you

Reply

21 Mar 2014 @10:11am

christopher

Thank you Jonathan, really helped me sort out a big problem, quick n easy..cheers

Reply

27 Feb 2014 @6:20am

Kenny G

Is it possible to change the way it saves? Ive seen in... system-settings/printers/properties... there are some other options that can be added. Im not a guru on command line, but something something like that should change the way it saves?

It gets annoying to have to change the file name without it being in a sequence save, or somehow save files individually.

Reply

05 Feb 2014 @3:54pm

edp

thank you brother...

Reply

17 Jan 2014 @11:05am

Mar

Perfect! Thanks for share

Reply

15 Jan 2014 @10:18am

Tan

Thanks very much! Worked smoothly.

Reply

02 Jan 2014 @8:31am

Johan

Good stuff. Thanks a lot

Reply

27 Nov 2013 @4:33pm

kay

thanks..it worked =)

Reply

17 Nov 2013 @12:08pm

Kenneth

Thanks!

Reply

05 Nov 2013 @6:54am

Wit

It's so much easier than in Win here. Thank's man!

Reply

10 Oct 2013 @7:47am

connor

how do you issue the print command? Do I open this application or use the terminal?

-noobToUbuntu

Reply

06 Sep 2013 @8:04am

Jon

Hi Connor, once you install the package through terminal or synaptic, you can just go to your document, and print as if you were printing to a normal printer. Just select the added PDF printer instead of a real printer, which would create a pdf file.

Reply

06 Sep 2013 @9:28pm

Bradley

Appreciated.

Reply

20 Jul 2013 @3:56am

Fett

Thanks for the hint.

Reply

13 Jun 2013 @2:54pm

Witzi

So easy and so helpful. Thank you very much!

Reply

08 Jun 2013 @11:58am

Luis Pacheco

Great, thank you for the tip.

Reply

05 May 2013 @11:41pm

Post a new Comment

Please write your name.
Please enter your comment
Please enter your email address.