TYPE DESIGN INFORMATION PAGE last updated on Sun May 19 06:26:42 EDT 2013



Extracting fonts from PDF files: method I

Written by Luc Devroye
McGill University
Montreal, Canada
lucdevroye@gmail.com
http://luc.devroye.org
Up to main font page
Up to main font index page





(1) Export a PostScript file (by pdf2ps, ghostscript, or AcrobatReader); (2) Look for pfa-format type 1 PostScript fonts (they start with %! and end about 50k later with cleartomark); sometimes you may want to look for BeginResource or BeginFont and take anything until the next EndResource; (3) Save that portion to a file (if the first line is not %! then use an editor to add that line; (4) Convert this to a pfb, by using free tools such as t1binary; (5) Warning: you have no .afm (font metric) file, so all kerning is lost, and the fonts are a tad useless. There are free tools to create .afm files without kerning pairs though.

EXTERNAL LINKS
Google search page

INTERNAL LINKS
PDF-related web sites ⦿









Luc Devroye ⦿ School of Computer Science ⦿ McGill University Montreal, Canada H3A 2K6 ⦿ lucdevroye@gmail.com ⦿ http://luc.devroye.org ⦿ http://luc.devroye.org/fonts.html