Variable

A blog out of pure (un)intelligence

How To Convert PostScript (eps/ps) to PDF with Ghostscript on Windows 10

ghostscript windows convert ps to pdf

In this tutorial you’ll do four  things, if you’ve already done some of them, please skip ahead!

  • Install Ghostscript
  • Add the Ghostscript bin -/ and lib -folder to your windows PATH
  • Open a Commandprompt at the location of your files
  • Convert the Postscript file to a PDF

1. Install Ghostscript

  • Navigate to Ghostscript.com/download
  • Select the proper version. – I’m using Windows 10, 64 bit so I chose “Ghostscript 9.18 for Windows (64 bit)”.
  • After downloading the installer, double-click on it and follow the instructions.

2. Add the Ghostscript bin -/ and lib-folder to your windows PATH

control-panel-start-menu

3. Open a Commandprompt at the location of your files

  • Navigate to the folder containing your files in the file explorer

open-command-window

4. Convert the Postscript file to a PDF

command-window-convert

Congratulations! You’ve successfully converted a Postscript file to a PDF!

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Random Writings

Leave a reply cancel reply.

Your email address will not be published. Required fields are marked *

Save my name, email, and website in this browser for the next time I comment.

Notify me of follow-up comments by email.

Notify me of new posts by email.

This site uses Akismet to reduce spam. Learn how your comment data is processed .

ps2pdf : PostScript-to-PDF converter

Table of contents.

Overview Usage Options Limitations Known problems Comparison of ps2pdf and Acrobat Distiller Acknowledgments
ps2pdf [options] input.[e]ps output.pdf
ps2pdf input.[e]ps
ps2pdf input.[e]ps input.pdf
Parameter name      Notes    default    screen    printer    prepress ASCII85EncodePages false = = = AlwaysEmbed [] = = = AntiAliasColorImages (0) false = = = AntiAliasGrayImages (0) false = = = AntiAliasMonoImages (0) false = = = AutoFilterColorImages (1) true = = = AutoFilterGrayImages (1) true = = = AutoPositionEPSFiles (0) true = = = AutoRotatePages /PageByPage /PageByPage /None /None Binding (0) /Left = = = CalCMYKProfile (0) () = = = CalGrayProfile (0) () = = = CalRGBProfile (0) () = = = CannotEmbedFontPolicy (0) /Warning /Warning /Warning /Error ColorACSImageDict (note 7) (note 7) (note 8) (note 9) ColorConversionStrategy (0,6) /LeaveColorUnchanged /sRGB /UseDeviceIndependentColor /LeaveColorUnchanged ColorImageDepth -1 = = = ColorImageDict (note 7) = = = ColorImageFilter /DCTEncode = = = ColorImageDownsampleThreshold 1.5 = = = ColorImageDownsampleType (3) /Subsample /Average /Bicubic /Bicubic ColorImageResolution 72 72 300 300 CompatibilityLevel 1.3 1.2 1.3 1.3 CompressPages true = = = ConvertCMYKImagesToRGB true = = = ConvertImagesToIndexed (0) true = = = CoreDistVersion 4000 = = = CreateJobTicket (0) false false true true DefaultRenderingIntent /Default = = = DetectBlends (0) true = = = DoThumbnails (0) false false false true DownsampleColorImages false true false false DownsampleGrayImages false true false false DownsampleMonoImages false true false false EmbedAllFonts true false true true EmitDSCWarnings (0) false = = = EncodeColorImages true = = = EncodeGrayImages true = = = EncodeMonoImages true = = = EndPage (0) -1 = = = GrayACSImageDict (note 7) (note 7) (note 8) = GrayImageDepth -1 = = = GrayImageDict (note 7) = = = GrayImageDownsampleThreshold 1.5 = = = GrayImageDownsampleType (3) /Subsample /Average /Bicubic /Bicubic GrayImageFilter /DCTEncode = = = GrayImageResolution 72 72 300 300 ImageMemory (0) 500000 = = = LockDistillerParams false = = = LZWEncodePages (2) false = = = MaxSubsetPct 100 = = = MonoImageDepth -1 = = = MonoImageDict > = = = MonoImageDownsampleThreshold 1.5 = = = MonoImageDownsampleType /Subsample /Average /Bicubic /Bicubic MonoImageFilter /CCITTFaxEncode = = = MonoImageResolution 300 300 1200 1200 NeverEmbed [] = = = OPM 1 = = = Optimize (0,5) false true true true ParseDSCComments true = = = ParseDSCCommentsForDocInfo true false true true PreserveCopyPage (0) true = = = PreserveEPSInfo (0) true = = = PreserveHalftoneInfo false = = = PreserveOPIComments (0) false false true true PreserveOverprintSettings false false true true sRGBProfile (0) () = = = StartPage (0) 1 = = = SubsetFonts true = = = TransferFunctionInfo (4) /Preserve = = = UCRandBGInfo /Remove /Remove /Preserve /Preserve UseFlateCompression true = = = UsePrologue (0) false = = =

Limitations

Known problems, comparison of ps2pdf and acrobat distiller.

I haven't seen a head to head comparison, but Distiller seems slower when running on what should be a faster system (for instance, Distiller on a PPC Mac vs a 25 MHz 68040 NeXT running ps2pdf ), so I think this is fair -- also, one of Mark Doyle's postings indicated that Distiller was not fast enough for use as a run-time server. In contrast, I find that I can use ps2pdf as a post-processor during routine document creation.

Acknowledgments

ghostscript windows convert ps to pdf

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

  • Creo+ and Creo Parametric
  • 3D Part & Assembly Design

Using Ghostscript to Convert PS to PDF

  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Printer Friendly Page

dgschaefer

  • Mark as New
  • Notify Moderator

Solved! Go to Solution.

  • Data Exchange
  • All forum topics
  • Previous Topic

MartinHanak

View solution in original post

ghostscript windows convert ps to pdf

Table of contents

Overview Usage Options Limitations Known problems Benefits of using ps2pdf Acknowledgments
ps2pdf [options] input.ps output.pdf
ps2pdf input.ps
ps2pdf input.ps input.pdf
set PS2PDFGS=gswin32c
set PS2PDFGS= executable_name
Parameter name    Initial value      Notes ASCII85EncodePages false AlwaysEmbed [] AutoFilterColorImages true 1 AutoFilterGrayImages true 1 ColorImageDepth -1 ColorImageDownsampleType /Subsample ColorImageResolution 72 CompatibilityLevel 1.3 CompressPages true ConvertCMYKImagesToRGB true CoreDistVersion 3000 DownsampleColorImages false DownsampleGrayImages false DownsampleMonoImages false EmbedAllFonts true EncodeColorImages true EncodeGrayImages true EncodeMonoImages true GrayImageDepth -1 GrayImageDownsampleType /Subsample GrayImageResolution 72 LZWEncodePages false 2 MaxSubsetPct 35 MonoImageDepth -1 MonoImageDict > MonoImageDownsampleType /Subsample MonoImageFilter /CCITTFaxEncode MonoImageResolution 300 NeverEmbed [] SubsetFonts true UseFlateCompression true
Parameter name    Initial value AntiAliasColorImages false AntiAliasGrayImages false AntiAliasMonoImages false AutoRotatePages /None ColorACSImageDict > ColorConversionStrategy /LeaveColorUnchanged ColorImageDict > ConvertImagesToIndexed false GrayACSImageDict > GrayImageDict > ImageMemory 250000 PreserveHalftoneInfo false PreserveOPIComments false PreserveOverprintSettings false TransferFunctionInfo /Apply UCRandBGInfo /Remove

Limitations

Known problems, benefits of using ps2pdf.

I haven't seen a head to head comparison, but Distiller seems slower when running on what should be a faster system (for instance, Distiller on a PPC Mac vs a 25 MHz 68040 NeXT running ps2pdf ), so I think this is fair -- also, one of Mark Doyle's postings indicated that Distiller was not fast enough for use as a run-time server. In contrast, I find that I can use ps2pdf as a post-processor during routine document creation.

Acknowledgments

Ghostscript Overview

Ghostscript is an interpreter for the PostScript®  language and PDF files. It is available under either the GNU GPL Affero license or  licensed for commercial use from Artifex Software, Inc . It has been under active development for over 30 years and has been ported to several different systems during this time. Ghostscript consists of a PostScript interpreter layer and a graphics library.

There are a family of other products, including GhostPCL, GhostPDF, and GhostXPS that are built upon the same graphics library. Between them, this family of products offers native rendering of all major page description languages. Our latest product, GhostPDL, pulls all these languages into a single executable.

Full descriptions of these products can be found on our documentation introduction .

In addition to rendering to raster formats, Ghostscript offers high-level conversion through our vector output devices.

Written entirely in C, Ghostscript runs on various embedded operating systems and platforms including Windows, macOS, the wide variety of Unix and Unix-like platforms, and VMS systems.

Current Release

The current Ghostscript release 10.02.1 can be downloaded here .

NEW in this Release

  • Old PDF Interpreter has now been removed - see https://ghostscript.com/blog/pdfi.html for more details
  • And more! Review the full release notes .

The Ghostscript Blog

Find news, articles and developer notes from the Ghostscript engineering team on the blog .

Security Advisory

CVE-2023-46751 affects all Ghostscript/GhostPDL versions prior to 10.02.1.

CVE-2023-46751 is a shell command injection/remote code execution risk, so we recommend upgrading to version 10.02.1 as a matter of urgency

CVE-2023-43115 affects all Ghostscript/GhostPDL versions prior to 10.02.0.

CVE-2023-43115 is a remote code execution risk, so we recommend upgrading to version 10.02.0 as a matter of urgency

CVE-2023-36664 affects all Ghostscript/GhostPDL versions prior to 10.01.2.

April 3, 2023: Ghostscript/GhostPDL 10.01.1 release fixes CVE-2023-28879 .

April 4, 2022: Ghostscript/GhostPDL 9.56.1 bundles zlib 1.2.12 which addresses CVE-2018-25032 .

December 16, 2021: Apache Log4J vulnerability – GHOSTSCRIPT NOT AFFECTED – For more info: CVE-2021-44228

Related projects

  • Memento : A memory debugging library for C (or C++) programs.
  • jbig2dec : A JBIG2 image decoder.

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

How to convert .PDF to .eps (on Windows) [closed]

I am looking for a free software program to allow me to convert a PDF file into an EPS file.

The converter should retain the image quality as much as possible.

I was able to do this with GSView, but the result was always of the shape of a portrait A4 image, while my image is a landscape A4.

(Sorry if this was asked already, I was only able to find EPS to PDF questions, but not the other way around.)

Nifle's user avatar

7 Answers 7

You can use the tool pdftops with the --eps switch. This is installed on most Linux systems together with the xpdf package.

This also can be installed on Windows. See for the links http://gnuwin32.sourceforge.net/packages/xpdf.htm

Peter Smit's user avatar

  • @Tal Yes it does. See also gnuwin32.sourceforge.net/packages/xpdf.htm –  Peter Smit Aug 30, 2010 at 7:17
  • I liked your solution the most - thank you –  Tal Galili Aug 30, 2010 at 18:06

Ghostscript also can convert PDFs to EPS:

If Ghostscript's default media size (which is letter ) doesn't match your needs, you can specify any other one like that:

A list of PAPERSIZE -values known to Ghostscript is here . Even more fine-tuned control you can gain by using -dDEVICEWIDTHPOINTS=w -dDEVICEHEIGHTPOINTS=h like this:

Width and height are given in 'points' (72 pt == 1 inch). OK, but now you have multi-page PDFs and EPS inherently is a 1-page format only? Additionally, you want to shift images to the left and to the top? Try this:

For each PDF page Ghostscript will create a separate EPS file, named input_page_001.eps , input_page_002.eps , etc.

While the above was the best answer that was available (when it comes to Ghostscript usage for the task at hand) during the time of writing in 2010, this is no longer true today, in 2015.

Today the current Ghostscript is 9.16/9.17. The epswrite output device is no longer available. The new eps2write device replaced it. ( epswrite generated PostScript Level 1, which can lead to rather large file sizes; eps2write generates Level 2 PostScript, which is far more efficient, sizewise.)

Kurt Pfeifle's user avatar

  • Thank you for very nice answer. Is there a way to set the resolution to 300 dpi and make the width/height calculate automatically? –  nimcap Mar 14, 2011 at 13:45
  • 2 @nimcap: You can use gswin64c.exe -o inputpdf-page_%03d.eps -sDEVICE=eps2write -r300 -dPDFFitPage input.pdf and just accept the page size it outputs... –  Kurt Pfeifle May 22, 2015 at 23:42

There are several options that I have found: The first is an online solution where you upload the file and then download it as a zip file. The second is a piece of software where you purchase it and then download the software. Hope that these lead you in the right direction.

James Mertz's user avatar

Adobe lets you download a free postscript driver:

http://www.adobe.com/support/downloads/product.jsp?product=pdrv&platform=win

Frankly, I used to use that quite a while ago, but it used to work fine back then.

ev-br's user avatar

  • Thank you, but I wasn't able to make it work as a virtual printer (I found tutorials for it, but it looked as too much of a pain) –  Tal Galili Aug 30, 2010 at 18:05

In Adobe acrobat standard / pro, you can save as .eps file.

cybergeek654's user avatar

In Windows, you may also use GIMP (GNU Image Manipulation Program) software for this. It is a free software. Just export the pdf to eps. Very easy to use.

Saravanan K's user avatar

I think that the best method to convert PDFs to eps files is to use a conventional PDF reader (Acrobat or Okular) to print the PDF to a file with the extension eps. I tried it and it works very well and conserves to a large scale the quality of the document.

Farid's user avatar

Not the answer you're looking for? Browse other questions tagged windows pdf eps .

  • The Overflow Blog
  • How long till we run out of fresh data to train the latest AI?
  • Maximum Glitch: How to break Tetris
  • Featured on Meta
  • Update to our Advertising Guidelines
  • Sites can now request to enable a banner to warn about their policy on...

Hot Network Questions

  • How to avoid writing a 'good but not great' reference letter
  • How to Identify and Filter AI-Generated Statements of Purpose (SoP) and Recommendation Letters?
  • Maximum voltage applied to the BJT base
  • What is the total area of the two quarter circles?
  • Tovelling a non-stick pan
  • What is lost upon death?
  • Only a specifc part of mesh being shown in OBJECT mode?
  • Is the bus driver forced to break a law here?
  • Does Newton's method converge for all polynomials?
  • How to model weekend constraints in a nurse rostering problem?
  • What are the tradeoffs between NPN vs PNP power transistors?
  • What is this flange with wire windings in a conical / horn shape?
  • Is the microphone in Mac Discord app always on? If so, can I withdraw permission at the Mac level, or in the app itself?
  • What would space equivalent of trucks look like?
  • Why does William van der Woodsen refer to the "Democratic Republic of the Congo" as "Zaire"?
  • Are there many high level political appointees who have served two countries in quick succession?
  • Permutation of cartesian product
  • Understanding the Value of Short-Term Undergraduate Internships for Host Universities and Professors
  • What's using all the space on a seemingly empty partition?
  • Conveying 'future me'
  • sudo persistent across ssh logins
  • What happens if the Maze spell is cast in Sigil?
  • How do I whitelist drives / partitions that can be mounted to only those that have entries in /etc/fstab?
  • QGIS expression to convert azimuth to bearing?

ghostscript windows convert ps to pdf

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .

IMAGES

  1. How To Convert PostScript (eps/ps) to PDF with Ghostscript on Windows

    ghostscript windows convert ps to pdf

  2. How To Convert PostScript (eps/ps) to PDF with Ghostscript on Windows

    ghostscript windows convert ps to pdf

  3. How To Convert PostScript (eps/ps) to PDF with Ghostscript on Windows

    ghostscript windows convert ps to pdf

  4. Windows : Ghostscript command line parameters to convert EPS to PDF

    ghostscript windows convert ps to pdf

  5. How To Convert PostScript (eps/ps) to PDF with Ghostscript on Windows

    ghostscript windows convert ps to pdf

  6. How To Convert PostScript (eps/ps) to PDF with Ghostscript on Windows

    ghostscript windows convert ps to pdf

VIDEO

  1. How to generate text to video

  2. convert Number to text in Ms word shortcut #youtubeshorts #viral #trending #msword #shorts

  3. Jpg file to txt file convert

  4. Delphi View PDF as image using Ghostscript & ImageMagick

  5. How To Edit PDF/JPEG Scanned Document In Photoshop

  6. HYUNDIA / FROM MANUAL TO POWER WINDOWS

COMMENTS

  1. ghostscript

    Following Converting correctly pdf to ps and vice-versa I used the following command to convert a postscript file to pdf: gs -o output.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -

  2. How To Convert PostScript (eps/ps) to PDF with Ghostscript on Windows

    - I'm using Windows 10, 64 bit so I chose "Ghostscript 9.18 for Windows (64 bit)". After downloading the installer, double-click on it and follow the instructions. 2. Add the Ghostscript bin-/ and lib-folder to your windows PATH. ... Convert the Postscript file to a PDF.

  3. How to Use Ghostscript

    This is intended to be a quick way to invoke ghostscript to convert one or more input files. For instance, to convert somefile.ps to JPEG image files, one per page, use: gs -sDEVICE=jpeg -o out-%d.jpg somefile.ps. is equivalent to: gs -sDEVICE=jpeg -sOutputFile=out-%d.jpg -dBATCH -dNOPAUSE somefile.ps.

  4. ps2pdf: PostScript-to-PDF converter

    ps2pdf: PostScript-to-PDF converter. and Acrobat Distiller. Acknowledgments. For other information, see the Ghostscript overview. is implemented as a very small command script (batch file) that invokes Ghostscript, selecting a special "output device" called . In order to use device must be included in the makefile when Ghostscript was compiled ...

  5. Convert PostScript to PDF locally

    To convert the file input.ps to the file output.pdf you simply say. ps2pdf input.ps output.pdf. If ps2pdf is not installed on your computer, you can run. sudo apt install ghostscript. on Linux. Windows installation. On Windows, you can install Ghostscript by first installing WSL then using the command above. I'm half joking.

  6. Why must I invoke ghostscript directly to convert PS to PDF?

    On the other hand, ps2pdf command is actually a script ( ps2pdf.exe in TeX Live calls a Lua script ps2pdf.tlu) which calling GhostScript, say, gswin32c.exe or gswin64c.exe. However, the option you use does fails. -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite are defined in ps2pdf script, you don't need them. -sOutputFile can also be replaced.

  7. Solved: Using Ghostscript to Convert PS to PDF

    Nov 22, 2016 01:24 PM. Creo 2, M230 on Windows 7, 64 bit. This is slightly off topic as it's mainly a Ghostscript question, but it's related to generating PDFs from Creo and I know that many here use Ghostscript. At my former job I had used Distiller to create PDFs from PS output from Creo. It worked well and bypassed the many issues I saw with ...

  8. ps2pdf: PostScript-to-PDF converter

    ps2pdf: PostScript-to-PDF converter. is implemented as a very small command script (batch file) that invokes Ghostscript, selecting a special "output device" called device must be included in the makefile when Ghostscript was compiled; see the. will always produce PDF 1.3 output (Acrobat 4-and-later compatible).

  9. windows 10

    Use pipe - on Windows 7 and 8 check this - on Win 10 leave it unchecked. Leave the other fields at their default settings. Click [ OK ] (I substituted 9.26 for 9.21). I've tried the setup process BOTH checked and unchecked and either way, I get a file which is a PS file, not a PDF. A PDF reader won't read the file:

  10. Ghostscript

    Ghostscript Overview. Ghostscript is an interpreter for the PostScript® language and PDF files. It is available under either the GNU GPL Affero license or licensed for commercial use from Artifex Software, Inc. It has been under active development for over 30 years and has been ported to several different systems during this time.

  11. windows

    I just had this problem with gs 9.02 on Linux, so here is my solution:. After quite a bit of research, I arrived at a ghostscript command line, that seems (to me) to implement a near "pass-through" for images in a PDF, meaning that the images in the "distilled" PDF should remain the same as the ones in the original PDF (see also How to tell ghostscript to leave bitmap images alone? - comp.text ...

  12. ghostscript

    I'm using "pdftops" to convert .pdf files to .ps files and then "ps2pdf" for the reverse process (poppler-utils). The problem is that when creating the .pdf files from the .ps files, the text looks ok, but when i try to copy it, the characters are very strange (it's like they are corrupted).

  13. c#

    There are three possible reasons for the error: 1) The 'instance' pointer is NULL. I can't see how this is ever possible with our executable as its a globally defined variable and the executable passes its address. This is a sanity check for people writing code against the Ghostscript API.

  14. How to convert .PDF to .eps (on Windows)

    5. Ghostscript also can convert PDFs to EPS: gswin32c.exe ^ -o output.eps ^ -sDEVICE=epswrite ^ d:/path/to/input.pdf. If Ghostscript's default media size (which is letter) doesn't match your needs, you can specify any other one like that: gswin32c.exe ^ -o output.eps ^ -sDEVICE=epswrite ^ -sPAPERSIZE=a5 ^ d:/path/to/input.ps.

  15. How to use ghostscript to convert PDF to PDF/A or PDF/X?

    To convert a non-PDF/A file into into a PDF/A file using Ghostscript, run: gs -dPDFA -dBATCH -dNOPAUSE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -dPDFACompatibilityPolicy=1 -sOutputFile=output_filename.pdf input_filename.pdf. Share. Improve this answer. Follow.

  16. Using Ghostscript to convert JPEG to PDF

    GhostScript is a PostScript interpreter, so it does not directly support a JPEG input, only a JPEG output. That said, it does support JPEG decompression (except for progressive JPEG). There's a PostScript program and accompanying shell script that you can use to take advantage of this called jpeg2eps .

  17. GhostScript PDF to PostScript

    I have to convert pdf files (created with jasperreports) to postscript. I'm using ghostscript (Version 9.19) to make the conversion. The commmand i'm using is: gswin64c -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=file.ps file.pdf The conversion is done without problem, but when i open the postscript file generated (using GSview 5.0), the ...

  18. Ghostscript to convert .jpeg to .pdf

    The viewjpeg.ps program accesses the JPEG file on disk and attempts to open it. Because of security vulnerabilities recent versions of Ghostscript now run with -dSAFER as the default, and that disables the PostScript interpreter's ability to open/read/write/delete files on disk.

  19. How to Display .eps Files

    The gv command-line tool is a graphical interface for Ghostscript.We use it to interpret PDF and PostScript files. We can also use gv to display .eps files on Linux and Unix systems.. However, we need to install gv on our system before we can use it. So, let's install gv using the apt install command: $ sudo apt install gv. Next, to open and view the .eps file, we use the gv command followed ...

  20. How to convert a PDF to PNG with ImageMagick "convert" or Ghostscript?

    As this page also lists alternative tools I'll mention xpdf which has command line tools ready compiled for Linux/Windows/Mac. Supports transparency. Is free for commercial use - opposed to Ghostscript which has truly outrageous pricing. In a test on a huge PDF file it was 7.5% faster than Ghostscript. (It also has PDF to text and HTML converters)

  21. Using Ghostscript

    Ghostscript is capable of interpreting PostScript, encapsulated PostScript (EPS), DOS EPS (EPSF), and Adobe Portable Document Format (PDF). The interpreter reads and executes the files in sequence, using the method described under " File searching " to find them. The interpreter runs in interactive mode by default.