1 - Integrate pdf-tools.cc with the rest of the code
2 - What if an input page specifies /Rotate?
3 - Better error messages from instantiation
4 - page->index: use or remove
5 - rename page->bbox to page->image_box?
8 | # Position bbox on a new paper
10 | paper(w=210mm,h=297mm,pos=(t|b|c)(l|r|c))
12 | # Scale paper to a new size
14 | scaleto(w=210mm,h=297mm,pos=tl)
16 | # Fit image to a paper
17 | # If paper is given: scale image
18 | # If no paper is given: adjust paper to image + margins
21 | margin= hmargin= vmargin=
22 | lmargin= rmargin= tmargin= bmargin=
27 | expand(h=10mm, v=20mm)
28 | expand(l=10mm, r=10mm, t=10mm, b=10mm)
30 | # Adjust image size (in terms of margins around)
31 | margins ... params like expand
34 mark=box # Box around image
35 mark=cross # Crosses in the corners
36 mark=out # Out-pointing half-crosses in the corners (default)
37 mark=in # In-pointing half-crosses
39 len=5mm # Cross arm length
40 dist=5mm # Distance from border
47 bleed=5mm # Allow bleeding over the image box
49 # Can be written as: mix(cat) { modulo(2){1}, modulo(2){2} }
58 | # Add an empty page after the current one
64 # - paper size + margins
67 by=row/column # Filling order (default: row)
68 paper / w / h # Specify paper size, default=copy from 1st image
69 + fit options (*margin, pos)
71 rotate=1 # Override rotation decision
72 scale=1 # Override scaling factor
73 tile # Tile with copies of a single page
74 hspace / vspace / space # Distance between tiles
77 # Send pages to multiple pipes and merge their results
79 cat # Concatenate results (default is interleave)
80 cycle # When one pipe ends earlier, cycle it from start
81 pad # When one pipe ends earlier, add blank pages