Created
June 10, 2023 19:26
-
-
Save stefanschmidt/d062a3575a3e52e1f138563121f455f7 to your computer and use it in GitHub Desktop.
Extract embedded fonts from a PDF file as OpenType file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show information about pdf resources (shows font names used in PDF) | |
mutool info file.pdf | |
# extract font and image resources | |
mutool extract file.pdf | |
# convert a CFF file (Compact Font Format) to OTF format (OpenType Font) | |
fontforge -lang=ff -c 'Open($1); Generate($1:r + ".otf")' font.cff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment