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?

5
  • 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, 2011 at 4:24
  • @Lev: Can pdftops convert EPS to EPS? Jul 2, 2011 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, 2011 at 4:39
  • dvips -E -o input.dvi does not produce EPS with %%HiResBoundingBox header. So converting EPS to EPS will add the header. Jul 2, 2011 at 4: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 2, 2011 at 4:57

1 Answer 1

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.

2
  • 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 2, 2011 at 4:24
  • 2
    Althouth it's worth pointing out that -dNOCACHE still vectorizes the text...
    – Girardi
    Jan 17, 2013 at 21:31

You must log in to answer this question.

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