Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

3 Answers 3

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

sudo apt-get install ghostscript

and use the ps2pdf utility:

ps2pdf myfile.ps 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.ps >> 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 "test.ps"

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

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.