5

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

or

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?

Display Name
  • 46,933
  • 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 02 '11 at 04:24
  • @Lev: Can pdftops convert EPS to EPS? – Display Name Jul 02 '11 at 04: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 02 '11 at 04:39
  • dvips -E -o input.dvi does not produce EPS with %%HiResBoundingBox header. So converting EPS to EPS will add the header. – Display Name Jul 02 '11 at 04:42
  • 3
    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 02 '11 at 04:57

1 Answers1

4

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

Leo Liu
  • 77,365
  • 5
    -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 02 '11 at 04:24
  • 2
    Althouth it's worth pointing out that -dNOCACHE still vectorizes the text... – Girardi Jan 17 '13 at 21:31