24 lines
1.1 KiB
TeX
24 lines
1.1 KiB
TeX
# CHAPTER 2. Merging and Splitting
|
|
|
|
def mergeSimple(pdfs):
|
|
"""mergeSimple(pdfs), given a list of PDFs,
|
|
merges the files into a new one, which is returned."""
|
|
|
|
def merge(pdfs, retain_numbering, remove_duplicate_fonts):
|
|
"""merge(pdfs, retain_numbering, remove_duplicate_fonts) merges
|
|
the list of PDFs. If retain_numbering is True page labels are not
|
|
rewritten. If remove_duplicate_fonts is True, duplicate fonts are merged.
|
|
This is useful when the source documents for merging originate from the
|
|
same source."""
|
|
|
|
def mergeSame(pdfs, retain_numbering, remove_duplicate_fonts, ranges):
|
|
"""mergeSame(pdfs, retain_numbering, remove_duplicate_fonts, ranges)
|
|
is the same as merge, except that it has an additional argument
|
|
- an array of page ranges. This is used to select the pages to pick from
|
|
each PDF. This avoids duplication of information when multiple discrete
|
|
parts of a source PDF are included."""
|
|
|
|
def selectPages(pdf, r):
|
|
""" selectPages(pdf, range) returns a new document which just those pages
|
|
in the page range."""
|