TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to convert PDF or EPS to EPS using the following commands, respectively.

gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=epswrite -sOutputFile=output.eps input.pdf


gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=epswrite -sOutputFile=output.eps input.eps

How to prevent GhostScript from rastering the font when converting PDF or EPS to EPS?

share|improve this question
Use pdftops instead, and you won't have this problem (also the resulting eps will be much smaller, and will have proper text in it (so you can search for and copy the text)). – Lev Bishop Jul 2 '11 at 4:24
@Lev: Can pdftops convert EPS to EPS? – xport Jul 2 '11 at 4:37
You don't need any tool to leave the format of a file unchanged :-) Why do you want to convert eps to eps? – Lev Bishop Jul 2 '11 at 4:39
dvips -E -o input.dvi does not produce EPS with %%HiResBoundingBox header. So converting EPS to EPS will add the header. – xport Jul 2 '11 at 4:42
If you only want to update the bbox then use epstool: epstool --copy --bbox input.eps output.eps will do nothing to the eps except update %%BoundingBox and %%HiResBoundingBox. – Lev Bishop Jul 2 '11 at 4:57
up vote 3 down vote accepted

You can add -dNOCACHE option. It is originally used for debugging, due to document of GS. But this is the only way I know.

share|improve this answer
-dNOCACHE is considered a debugging option because it turns the text glyphs into the set of outline curves that represents them, making for a huge file that is slow to render and you can no longer search for the text or copy/paste it. – Lev Bishop Jul 2 '11 at 4:24
Althouth it's worth pointing out that -dNOCACHE still vectorizes the text... – Girardi Jan 17 '13 at 21:31

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.