cpdf-source/docsplits/pysplits/c15.tex

14 lines
475 B
TeX
Raw Normal View History

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
2024-04-17 02:14:40 +02:00
def fontsJSON(pdf):
"""Return font information in JSON format."""
2021-08-10 15:41:18 +02:00
def removeFonts(pdf):
2021-09-01 19:41:10 +02:00
"""Remove 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):
2021-09-01 19:41:10 +02:00
"""Copy the given font from the given page in the pdf PDF to every page in
the pdf2 PDF. The new font is stored under its font name."""