cpdf-source/pysplits/c10.tex

31 lines
1.0 KiB
TeX
Raw Normal View History

2021-08-10 15:41:18 +02:00
# CHAPTER 9. Mulitpage facilities
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def twoUp(pdf):
"""Impose a document two up. twoUp does so by retaining the existing page
size, scaling pages down. twoUpStack does so by doubling the page size,
to fit two pages on one."""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def twoUpStack(pdf):
"""Impose a document two up. twoUp does so by retaining the existing page
size, scaling pages down. twoUpStack does so by doubling the page size,
to fit two pages on one."""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def padBefore(pdf, r):
"""padBefore(pdf, range) adds a blank page before each page in the given
range"""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def padAfter(pdf, r):
"""padAfter(pdf, range) adds a blank page after each page in the given
range"""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def padEvery(pdf, n):
"""pageEvery(pdf, n) adds a blank page after every n pages"""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def padMultiple(pdf, n):
"""padMultiple(pdf, n) adds pages at the end to pad the file to a multiple
of n pages in length."""
2021-07-26 20:50:33 +02:00
2021-08-10 15:41:18 +02:00
def padMultipleBefore(pdf, n):
"""padMultiple(pdf, n) adds pages at the beginning to pad the file to a
multiple of n pages in length."""