cpdf-source/docsplits/pysplits/c20.tex

55 lines
1.7 KiB
TeX
Raw Permalink Normal View History

2024-04-16 04:14:14 +02:00
def draft(pdf, r, boxes):
2024-04-17 02:14:40 +02:00
"""Remove images on the given pages, replacing them with crossed boxes if
'boxes' is True."""
2024-04-16 04:14:14 +02:00
def removeAllText(pdf, r):
"""Remove all text from the given pages in a document."""
def blackText(pdf, r):
"""Blacken all text on the given pages."""
def blackLines(pdf, r):
"""Blacken all lines on the given pages."""
def blackFills(pdf, r):
"""Blacken all fills on the given pages."""
def thinLines(pdf, r, linewidth):
2024-04-17 02:14:40 +02:00
"""Thicken every line less than linewidth to linewidth. Thickness given in
points."""
2024-04-16 04:14:14 +02:00
def copyId(pdf, pdf2):
"""Copy the /ID from one pdf to pdf2."""
def removeId(pdf):
"""Remove a document's /ID"""
def setVersion(pdf, version):
"""Set the minor version number of a document."""
def setFullVersion(pdf, major, minor):
2024-04-17 02:14:40 +02:00
"""Set the major and minor version number of a document."""
2024-04-16 04:14:14 +02:00
def removeDictEntry(pdf, key):
2024-04-17 02:14:40 +02:00
"""Remove any dictionary entry with the given key anywhere in the
document."""
2024-04-16 04:14:14 +02:00
def removeDictEntrySearch(pdf, key, searchterm):
2024-04-17 02:14:40 +02:00
"""Remove any dictionary entry with the given key anywhere in the document,
if its value matches the given search term."""
2024-04-16 04:14:14 +02:00
def replaceDictEntry(pdf, key, newvalue):
2024-04-17 02:14:40 +02:00
"""Replace any dictionary entry with the given key anywhere in the document
using the new value given."""
2024-04-16 04:14:14 +02:00
def replaceDictEntrySearch(pdf, key, newvalue, searchterm):
"""Replace any dictionary entry with the given key anywhere in the
document, if its value matches the given search term, with the new value
given."""
def getDictEntries(pdf, key):
"""Return JSON of any dict entries with the given key."""
def removeClipping(pdf, r):
"""Remove all clipping from pages in the given range"""