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?
  • Wouldn't it be better to use diagram drawing software that produces eps files directly (e.g. geogebra)? – Ian Thompson Jan 12 '16 at 12:20
  • @IanThompson Maybe... but I'm used to Word (I only need simple block diagrams etc). And in any case I'd like to have a general solution to produce usable EPS files from any program – Luis Mendo Jan 12 '16 at 12:23
  • This looks off-topic to me: yes you want to use the output with TeX, but you need Windows knowledge here. (Can't you print to PDF then convert from PDF to EPS?) – Joseph Wright Jan 12 '16 at 12:25
  • I think it would be quite easy to draw simple diagrams with geogebra. If you print to eps from arbitrary applications you probably won't get a vector image. Instead you will get a bitmap embedded in an eps, which will distort (especially if it contains text such as labels). You may as well use a png file (in which case you would need to compile with pdflatex). – Ian Thompson Jan 12 '16 at 12:28
  • 1
    Do you mean it is a whole page? There is a excellent tool epspdf-setup , available on CTAN, which is able to convert between eps and pdf formats, cropping to a tight bounding box. – Bernard Jan 12 '16 at 16:49

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)

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.

  • Thanks! I'll try that (not at the work computer right now) – Luis Mendo Sep 11 '16 at 18:28
  • I tried this. It almost works for me. It produces correct .eps files, which I can compile with latex and dvips to a ps file. However, it fails when I try to produce a pdf file. Using ps2pdf with the dEPSCrop option to convert the figure produces a blank image in the pdf – Luis Mendo Sep 14 '16 at 15:48

You can install the CutePDF printer. That still allows you to set the format to eps in the advanced options.

Take care when installing to decline all the unwanted extras (ask toolbar etc)

This works with excel plots, but unfortunately word documents (required by the poster) always come out as pdf

  • Thanks. I have set EPS output in CutePDF, but when I try to "convert to EPS" in GSView to set the bounding box (step 4 in my question) it says "An EPS file must be single page document". It seems the EPS file that CutePDF generates has some problem with paging – Luis Mendo Feb 5 '16 at 13:01
  • Also, the file printed by CutePDF with EPS option begins wiith %PDF-1.4 and has default extension pdf. So it doesn't seem to be an EPS file at all. Can you produce EPS with CutetPDF? – Luis Mendo Feb 5 '16 at 13:06
  • Yes I have it working. I downloaded and installed CutePDF today, so it's not a different version issue. The eps file it generated was a genuine eps file. Are you sure your eps setting has not got set back somehow? – Peter A Feb 5 '16 at 14:28
  • I installed today too. Do you have Windows 10? Can you tell me exactly how you configured CurePDF? I used this option but the file is a PDF – Luis Mendo Feb 5 '16 at 14:41
  • My settings are identical to yours (except in English). Yes I have windows 10. Is it possible you are printing a doc with more than one page? – Peter A Feb 5 '16 at 14:49

I ended up doing this:

  1. Install Adobe Acrobat 8 Professional. Other versions probably work as well.
  2. From Word, print to pdf using Adobe's printer installed in step 1. Other pdf printers probably work as well.
  3. Open the generated pdf file with Adobe Acrobat Professional and crop it.

The file resulting from step 3 can be included in LaTeX files without problems.

This answer is not completely satisfactory because of the following two issues, so I won't mark it as accepted:

  • I get a pdf file but not an eps file. That means I can compile the tex file into pdf, but not into ps.

  • This solution requires a software tool (Adobe Acrobat Proferssional) which is not free.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.