cpdf-source/javascriptsplits/c10.tex

34 lines
1.1 KiB
TeX

// CHAPTER 9. Multipage facilities
/** 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. */
function impose(pdf, x, y, fit, columns, rtl, btt, center, margin, spacing, linewidth)
/** Imposes a document two up. twoUp does so by shrinking the page size, to fit
two pages on one. */
function twoUp(pdf)
/** Impose a document two up. twoUpStack does so by doubling the page size,
to fit two pages on one. */
function twoUpStack(pdf)
/** Adds a blank page before each page in the given range. */
function padBefore(pdf, range)
/** Adds a blank page after every n pages. */
function padAfter(pdf, range)
/** Adds a blank page after every n pages. */
function padEvery(pdf, n)
/** Adds pages at the end to pad the file to a multiple of n pages in
length. */
function padMultiple(pdf, n)
/** Adds pages at the beginning to pad the file to a multiple of n pages in
length. */
function padMultipleBefore(pdf, n)