Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

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
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 '11 at 4:57
add comment

1 Answer

up vote 2 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
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 '11 at 4:24
2  
Althouth it's worth pointing out that -dNOCACHE still vectorizes the text... –  Girardi Jan 17 '13 at 21:31
add comment

Your Answer

 
discard

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.