How to extract embedded fonts from a pdf file using fontforge script

I am trying to extract fonts from a pdf file using the following fontforge script

Open("file.pdf") file = $firstfont while ( file != "" ) Open(file) Print($fontname) file = $nextfont endloop 

This downloads only one font, but if I open the same pdf file with fontforge gui, it will display 7 fonts. Can i get help.

+4
embedded-fonts fontforge
source share

No one has answered this question yet.

See related questions:

5
Import the sequence of .svg files into FontForge as glyphs and output the font file
4
Fill missing characters in fonts with fontforge
3
How to convert TTF to FNT using Fontforge
1
FontForge - Why Python scripts don't work through "File-> Run Script"
1
Using Inline Fonts in Asp.Net
1
Corrupted .ttf files when extracting embedded fonts from PDF using iTextSharp
1
How to convert .otf to .ttf (with Postscript contours) using Fontforge scripts?
0
How to extract fonts with fontforge in PDF where multiple font objects have the same basefont name?
0
How to skip bad fonts in a FontForge script loop?
0
FONTFORGE Commit Open Type Font Checker / TCPDF

All Articles