[Tex/LaTex] Print to EPS file in Windows 10

epspostscriptwindows

In Windows 7 and older versions I did this to generate EPS:

  1. I installed a driver for a postcript printer (from HP for example).
  2. Set "file" as printer port, so that output was directed to a file instead of to an actual printer.
  3. Accessed the driver's postscript properties and set it to produce EPS files.
  4. After the file was printed, I needed to "convert to EPS" and set bounding box with the GSView program.

After step 4, the EPS file could be succesfully inserted as a figure in a LaTeX document. I used for example Word to draw the figure, generate the EPS file, and it could be succesfully inserted with \includegraphics.

My problem is that in Windows 10 I can't do step 3. I have tried many drivers and none of them seems to offer postscript properties. They do produce files, but when I insert them in a LaTeX document the figure doesn't show correctly, or GSView gives errors when displaying the document. I think the reason is that the file is not a valid EPS file.

So, my questions are:

  • Is there a postscript driver that will allow me to access postscript properties in Windows 10?
  • Failing that, how can I print to EPS files in Windows 10?

Best Answer

Late to the party this side but thought I would add in my solution in case anyone still needs it. Ran into the same problem you did on windows 10 as I couldn't work out how to print EPS files. This is what I did my side and it seems to have worked!

basically, windows 10 stopped supporting PCL5 according to this: http://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c00751649

but if you install the "HP universal driver for windows" from here: http://h20566.www2.hp.com/hpsc/swd/public/readIndex?sp4ts.oid=4157320

you can download drivers for windows 10 specifically, and in the driver listing there is:

HP Universal Print Driver for Windows PostScript (64-bit) 6.2.1.20636

Install this driver, and when it prompts you select

  1. Traditional mode
  2. Local printer or network printer with manual settings
  3. Print to File
  4. Install printer driver "HP Universal Printing PS (v6.2.1)"

This then gives you a printer with all the nifty postscript features, and if you print to Encapsulated mode seems to play nicely with Ghostview.

Related Question