TYPE DESIGN INFORMATION PAGE last updated on Wed Nov 20 11:22:20 EST 2024
FONT RECOGNITION VIA FONT MOOSE |
|
|
|
Extracting fonts from PDF files | ||
|
|
|
Mirko Scholz explains how to use pdftosrc (from pdfTeX) to extract type 1 fonts from PDF files. [Google] [More] ⦿ | |
Håvar Ingmund Henriksen (b. 1980) is from Skjervøy, in Nord-Troms, in the northern part of Norway. His interests include technology and comics. In 2009, he used FontStruct to create LCD DotMatrix. He writes: This is the Dot Matrix LCD Font used on the Ricoh Aficio AP3800C, Aficio AP3200 and AP306D printers, among others. He also explains how to use FontForge to extract fonts from PDF files. He says: Basically you just need to select "Extract from PDF" in the filter section of the "Open Font" dialogbox used when opening files. When you have selected your PDF file, a "Pick a font" dialogbox will open where you could select wich font to open. Then you'll just need to compact the font using the "Encoding" menu and selecting "Compact". This will remove all non-used glyphs in the font. Then you would have to edit the Font Info, and save the font as a font file (usally TrueType is best). Quote from the article: "Beware though, sometimes when a font is embedded into a PDF it will only contain [glyphs for] characters used. So, if the PDF file that you are trying to extract from does not contain the letter "P" [glyph], then that letter will not show up in FontForge." (You could see an example of this in the image above, the PDF file the font was extracted from did not contain glyphs for all the letters in the english alphabet). [Google] [More] ⦿ | |
Håvar Ingmund Henriksen
| |
A Japanese hacker suggests this method for Linux: Install FontForge | |
MuPDF is a free lightweight PDF viewer and toolkit written in portable C. It includes pdfdraw (PDf to PNM iimage converter), pdfextract (rxtract fonts and images), pdfinfo, pdfclean (rewrite PDF files), and pdfshow. By Artifex Software. [Google] [More] ⦿ | |
A discussion on Typophiles about the process of extracting fonts from PDF files. The more noteworthy contributions:
| |
PDF font extraction used to be a simple thing until 2001. Most PDF files created after 2001 have only partial character sets, but most older PDF files have full type 1 or other font files. Mirko Scholz recommends the use of pdftosrc, part of the PDFTeX package. Alternately, one can use Acrobat3 (*not* higher versions) and output a PostScript file from a PDF file. Inspect the PostScript file to find the fonts, usually located between BeginResource and EndResource lines (or the line with "cleartomark"). You may have to add a header line (example: %!PS-AdobeFont-1.0: AmasisMT (001.003)). The PFA file (in case of type 1) needs to be converted to PFB using t1utils, a free package. Remember that no metrics (AFM, PFM) file can be extracted from a PDF file! Several utilities exist (e.g., Crossfont) that automatically generate a basic PFM file. See also the discussion here. [Google] [More] ⦿ | |
On-line PDF font extractor at En Fontke. Unfortunately, this service disappeared in the middle of 2019. [Google] [More] ⦿ | |
On-line PDF unlocker. Upload your file, and get an unlocked version back. [Google] [More] ⦿ | |
A UNIX Free BSD shell script for extracting type 1 fonts from a PDF file, after having produced a .ps file as an output of the xpdf utility. The fonts are in "pfa" format, so you may want to use "pfa2pfb" or "t1asm" to make a "pfb" file from this: | |
Using FontForge to extract fonts from a PDF file
| We read: Basically you just need to select "Extract from PDF" in the filter section of the "Open Font" dialogbox used when opening files. When you have selected your PDF file, a "Pick a font" dialogbox will open where you could select wich font to open. Then you'll just need to compact the font using the "Encoding" menu and selecting "Compact". This will remove all non-used glyphs in the font. Then you would have to edit the Font Info, and save the font as a font file (usally TrueType is best). Quote from the article: "Beware though, sometimes when a font is embedded into a PDF it will only contain [glyphs for] characters used. So, if the PDF file that you are trying to extract from does not contain the letter "P" [glyph], then that letter will not show up in FontForge." (You could see an example of this in the image above, the PDF file the font was extracted from did not contain glyphs for all the letters in the english alphabet). [Google] [More] ⦿ |
View PDF files on X-Windows, and extract images from PDF files. By Derek B. Noonburg. GNU license software, faster and more reliable than Acrobat Reader. To extract fonts from pdf files: start xpdf, print to a file (a postscript file). That file has all the fonts neatly embedded in pfa format, except for the first line (the BeginResource line should be replaced by the first line of a pfa font). The last line is "cleartomark". Use a pfa to pfb converter, and you are done. [Google] [More] ⦿ | |
Free program to embed files into PDF files and extract files from it. [Google] [More] ⦿ |
|
|