TYPE DESIGN INFORMATION PAGE last updated on Fri Dec 13 00:47:48 EST 2024

SEARCH THIS SITE:

IMAGE SEARCH:

FONT RECOGNITION VIA FONT MOOSE

LUC DEVROYE


ABOUT







UNIX shell script for extracting PDF files

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:
# pdfextract file.ps
#
# extracts font files from a .ps generated from an xpdf output
#

echo "" > A

gawk 'BEGIN {m=0; f=""; a=1}
m == 1 {print $0 >> a".pfa" }
$1 ~ /%%BeginResource:/ {m=1; f=$3; print "%!PS-AdobeFont-1.0: " f > a".pfa" }
$1 ~ /cleartomark/ {m=0; a+=1; f=""} ' $1 >> A

EXTERNAL LINKS
MyFonts search
Monotype search
Fontspring search
Google search

INTERNAL LINKS
Extracting fonts from PDF files ⦿













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