2021-08-10 15:41:18 +02:00
|
|
|
# CHAPTER 14. Fonts
|
2021-07-26 20:50:33 +02:00
|
|
|
|
2021-08-10 15:41:18 +02:00
|
|
|
def getFontInfo(pdf):
|
|
|
|
"""Get a list of (pagenumber, fontname, fonttype, fontencoding) tuples,
|
|
|
|
showing each font used on each page."""
|
2021-07-26 20:50:33 +02:00
|
|
|
|
2021-08-10 15:41:18 +02:00
|
|
|
def removeFonts(pdf):
|
|
|
|
"""removeFonts(pdf) removes all font data from a file."""
|
2021-07-26 20:50:33 +02:00
|
|
|
|
2021-08-10 15:41:18 +02:00
|
|
|
def copyFont(pdf, pdf2, r, pagenumber, fontname):
|
|
|
|
"""copyFont(from, to, range, pagenumber, fontname) copies the given font
|
|
|
|
from the given page in the 'from' PDF to every page in the 'to' PDF. The
|
|
|
|
new font is stored under it's font name."""
|