daytore.blogg.se

Command line to convert ps to pdf
Command line to convert ps to pdf





command line to convert ps to pdf
  1. COMMAND LINE TO CONVERT PS TO PDF PDF
  2. COMMAND LINE TO CONVERT PS TO PDF INSTALL
  3. COMMAND LINE TO CONVERT PS TO PDF PORTABLE

If you are in a graphical environment like KDE or GNOME, open a terminal window and change to the directory containing the PostScript file that you want to convert. Let’s assume that you’ve created a PostScript file and now want to convert it to PDF.

COMMAND LINE TO CONVERT PS TO PDF INSTALL

If not, you can download and install GhostScript to get it. If a path is displayed (for example, /usr/bin/ps2pdf), then you’re ready to go. To find out if ps2pdf is installed on your system, type which ps2pdf at the command line. GhostScript is a standard part of most Linux systems.

COMMAND LINE TO CONVERT PS TO PDF PDF

ps2pdf runs a PostScript file through GhostScript and outputs a PDF file. Ps2pdf is a script that comes bundled with GhostScript, a freeware PostScript interpreter. There are a number of ways to create a PDF in Linux, but one of the most popular methods is to use a utility called ps2pdf.Ī number of Linux applications, most notably and TeX, can create PDFs without the need to create a PostScript file, so why use ps2pdf? Because there are times you need to create PDF files that these applications don’t support.Īccording to the ps2pdf documentation, ps2pdf can “process complex and difficult PostScript files that Acrobat Distiller is not able to handle.” I’ve never run into this situation myself, but I know of a few people who turned in desperation to ps2pdf because they could not get usable output from Acrobat Distiller. Linux, however, has no version of Distiller. On Windows and Mac OS, most people create PDF files by first creating a PostScript file and then using Adobe Acrobat Distiller to generate a PDF.

COMMAND LINE TO CONVERT PS TO PDF PORTABLE

Which font details can you tell us about your resulting PDFs? (Try pdffonts your.pdf to find out - pdffonts is also part of the Poppler utils you mentioned.For better or for worse, Adobe’s Portable Document Format (PDF) is a wildly popular way of exchanging information. One likely cause for your inability to copy text from the PDF could be the font type (and encoding) that ended up being used and embedded in your PDF file. So, which is the version of Ghostscript installed on your system? (Remember, ps2pdf calls Ghostscript, it will not work without a locally installed gs executable.) Thirdly, Ghostscript gained a lot of additional power and control, and had a few bugs or weak spots removed over the last few years when it comes to outputing PDF. Second, without exactly knowing how exactly your PS input file is conditioned, it is difficult to give you good advice: Does your PS have embedded the fonts it uses? Which type of fonts are they? etc. (You can tweak a few parameters with ps2pdf - but then you are already so much closer to run the real Ghostscript command already.) ps2pdf it takes away a lot of potential control you could have if you used Ghostscript. Ghostscript has many more options, but it is more difficult to learn. Is that correct?)įirst of all, most likely your ps2pdf is only a shellscript, which internally uses a Ghostscript command with some default parameters to do the real work. (I'm assuming your phrase of vice-versa isn't meant to point to a 'round-trip' conversion of the very same file, but the general direction of conversion for any PS file. I'm just covering the PS->PDF conversion.







Command line to convert ps to pdf