Updating html_manual/splits

This commit is contained in:
John Whitington
2022-01-26 12:41:19 +00:00
parent aa65ab647f
commit c067482046
22 changed files with 265 additions and 142 deletions

View File

@ -1,4 +1,4 @@
# CHAPTER 9. Mulitpage facilities
# CHAPTER 9. Multipage facilities
def twoUp(pdf):
"""Impose a document two up by retaining the existing page
@ -8,6 +8,14 @@ def twoUpStack(pdf):
"""Impose a document two up by doubling the page size,
to fit two pages on one."""
def impose(pdf, x, y, fit, columns, rtl, btt, center, margin, spacing, linewidth):
"""impose(pdf, x, y, fit, columns, rtl, btt, center, margin, spacing,
linewidth) imposes a PDF. There are two modes: imposing x * y, or imposing
to fit a page of size x * y. This is controlled by fit. Columns imposes by
columns rather than rows. rtl is right-to-left, btt bottom-to-top. Center
is unused for now. Margin is the margin around the output, spacing the
spacing between imposed inputs."""
def padBefore(pdf, r):
"""Adds a blank page before each page in the given range."""