Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

How do I convert *.ps file to a .pdf file? I tried several links given by google search, but either solution is really old and does not work for latest versions of ps and pdf files, or they do not make sense to me. Is there a simple utility to convert .ps file to .pdf file.

share|improve this question
Question I was looking for, though my .ps is in landscape and I can't seem to find an answer to this question with the landscape option added. Any Idea's? (My .pdf ends up being some sort of portrait cropped version of the landscape .ps.) – Eljee Aug 26 '15 at 13:53

For a command-line solution: install the 'ghostscript' package:

sudo apt-get install ghostscript

and use the ps2pdf utility:

ps2pdf myfile.pdf


share|improve this answer
thorwing an error that current mode is local!! – hrishikeshp19 Mar 20 '12 at 1:09
could you paste the error text? – Jeremy Kerr Mar 20 '12 at 1:22

Try to download and install GIMP once you are done open your.PS file with it and then go to save us and go to the drop down menu where you can choose the type of the file.. The pdf should be there, save it and it should work just fine.

share|improve this answer
there is no option to save as pdf :( – hrishikeshp19 Mar 20 '12 at 1:07
Hmm try to type manually as >> test.pdf sometimes it work. – xHellghostx Mar 22 '12 at 15:53
File > Export and the set a filename ending in .pdf – glarrain Nov 30 '13 at 23:57

Not on Ubuntu right now but try this.

If your post script file is called ""

gs -sDEVICE=pdfwrite -sOutputFile=test.pdf -dBATCH -dNOPAUSE

the non-self-explanatory flags are -dBATCH which avoids going into interactive mode and -dNOPAUSE which suppresses pausing after each page.

share|improve this answer

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.