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 have a simple question, I would like to produce some latex document which has all its fonts rendered in vector graphic form, no embedded fonts, is this possible and how can I achieve this by using the standard latex build chain?

Do I need to use dvi2ps or ps2pdf? And what are the properties to set there?

share|improve this question
What do you mean by vector graphics form? That will require the fonts anyways. Are you having problems with bitmapped fonts? – daleif Aug 26 '11 at 13:29
@daleif: He wants to convert glyphs to vector paths which would be then included just as any other vector images. A font would then be required only at compile time, not at rendering time. – Andrey Vihrov Aug 26 '11 at 13:43
If you are doing this in order to prevent text copying, better do not. It will still be possible to OCR the document, while it will prevent normal users from using text search and will drop any hinting or other special font information. – Andrey Vihrov Aug 26 '11 at 13:45
up vote 6 down vote accepted

You can add the following ghostscript call to your processing chain:

gs -sDEVICE=pswrite -sOutputFile=- -q -dNOPAUSE With-Fonts.pdf
   -c quit | ps2pdf - > No-Fonts.pdf

EDIT: This doesn't quite work, however. (it produces bitmap fonts (pixel stuff)):

But the following command does seem to to work:

gs -sDEVICE=pswrite -sOutputFile=- -q -dNOPAUSE -dNOCACHE With-Fonts.pdf
   -c quit | ps2pdf - > No-Fonts.pdf

credit goes to: Remove embedded fonts from a pdf.

share|improve this answer
@AlanMunn Thanks for fixing my answer :-) – kongo09 Aug 30 '11 at 18:58
newer versions of gs seem to not have pswrite, only ps2write. Unfortunately it doesn't do the expected anymore. – J. C. Leitão Nov 27 '15 at 9:14

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.