More pysplits for v2.7

This commit is contained in:
John Whitington
2024-04-17 08:14:40 +08:00
parent 94258b5014
commit 02502881e8
10 changed files with 355 additions and 106 deletions

View File

@ -1,8 +1,8 @@
# CHAPTER 18. Miscellaneous
# CHAPTER 19. Miscellaneous
def draft(pdf, r, boxes):
"""Remove images on the given pages, replacing
them with crossed boxes if 'boxes' is True."""
"""Remove images on the given pages, replacing them with crossed boxes if
'boxes' is True."""
def removeAllText(pdf, r):
"""Remove all text from the given pages in a document."""
@ -17,8 +17,8 @@ def blackFills(pdf, r):
"""Blacken all fills on the given pages."""
def thinLines(pdf, r, linewidth):
"""Thicken every line less than
linewidth to linewidth. Thickness given in points."""
"""Thicken every line less than linewidth to linewidth. Thickness given in
points."""
def copyId(pdf, pdf2):
"""Copy the /ID from one pdf to pdf2."""
@ -30,20 +30,19 @@ def setVersion(pdf, version):
"""Set the minor version number of a document."""
def setFullVersion(pdf, major, minor):
"""Set the major and minor version number of
a document."""
"""Set the major and minor version number of a document."""
def removeDictEntry(pdf, key):
"""Remove any dictionary entry with the given
key anywhere in the document."""
"""Remove any dictionary entry with the given key anywhere in the
document."""
def removeDictEntrySearch(pdf, key, searchterm):
"""Remove any dictionary entry with the given
key anywhere in the document, if its value matches the given search term."""
"""Remove any dictionary entry with the given key anywhere in the document,
if its value matches the given search term."""
def replaceDictEntry(pdf, key, newvalue):
"""Replace any dictionary entry with the given
key anywhere in the document using the new value given."""
"""Replace any dictionary entry with the given key anywhere in the document
using the new value given."""
def replaceDictEntrySearch(pdf, key, newvalue, searchterm):
"""Replace any dictionary entry with the given key anywhere in the