Is there a way to extract fonts from pdf files? I know that usually embedded fonts in pdf files are only subsets of the fonts. Anyway is there way to do this?

link|improve this question
Unless you are asking how to do this programmatically, this is not a programming question. – Peter Hilton Jan 8 '09 at 1:25
feedback

migrated from stackoverflow.com Nov 26 '09 at 21:09

This question came from our site for professional and enthusiast programmers.

5 Answers

Modified version for Windows Users

Original Version : http://init.sh/?p=13

Download FontForge for Windows

http://www.geocities.jp/meir000/fontforge/fontforge-mingw_2009_03_05.zip

Once FontForge is downloaded, start it

On the “Open Font” screen, go down to where it says “Filter” and change it to “Extract from PDF”. Select your PDF and a “Pick a font” window will open. Select the font you want to extract and click OK.

A window with a display of the font will show up. It’s not quite ready to turn into a TTF yet. Here’s how to prepare it:

Go to the Encoding menu and select “Compact”. This will cause FontForge to remove all characters that are not defined in the embedded font. Beware though, sometimes when a font is embedded into a PDF it will only contain characters used. So, if the PDF file that you are trying to extract from does not contain the letter “P”, then that letter will not show up in FontForge. Check to make sure all the characters you need are displayed and then head over to the Element menu.

Click on Font Info. You can update the Fontname, Family Name, and most importantly, “Name for Humans”. This field is what the font will display as in your editing program. The font name is usually a little garbled when you extract it, so just make it something readable. If there is a copyright notice displayed at the bottom, you should probablly stop what you are doing since that usually means the font should be purchased.

If there’s no copyright, click on “OK”. Then go to File > Generate Fonts.

Select the type of font you want to save as (Usually TrueType is best), and click on Save. You may encounter some messages about Non-standard Em size and Bad Private Dictionary errors. Just click on Save and you should be OK.

Then, find your font file and open it up to make sure that it displays properly.

If it does, then all is well. Close FontForge and enjoy your properly displayed font.

link|improve this answer
Note: the link is obsolete, use the one under Download section here: geocities.jp/meir000/fontforge – Michael Pliskin Dec 23 '10 at 12:54
feedback

Though bear in mind: Some documents with custom fonts are made as PDFs just for the purpose that those fonts should not be available to everybody.

Meaning they are copyrighted to their respective owner. Which in turn means if you plan to use said copyrighted font you can get in a lot of trouble.

Yes, not every font is free. There are fonts that cost hundreds of buck too.

link|improve this answer
feedback

I have used fontforge to accomplish this in the past.

link|improve this answer
feedback

http://onlinefontconverter.com/extract_font_from_pdf.php does the job for you

link|improve this answer
feedback

A few years ago I have designed a special font. It took me about a year of on and off work. One day my Maxtor HDD died and there was no way I could recover my work. But I had the font embedded in some PDF files for my clients. Then I have the the ideea to extract fonts from these files. After a year or so of looking online for an answer I put together a method to extract fonts from PDF. I have presented this method on my blog at http://pdffontextract.blogspot.com . Since I have come up with this solution many alternetives emerged but there nothing wrong with diversity. I made this post to help other that need to recover their lost work. Have fun and if you need any help don't hesitate to contact me.

link|improve this answer
While this may answer the question, it would be best to outline what you did here instead of linking somewhere else. This way the information will still be available in case your blog is deleted or anything happens. – slhck Jun 22 '11 at 9:31
feedback

Your Answer

 
or
required, but never shown