1 - Integrate pdf-tools.cc with the rest of the code
2 - What if an input page specifies /Rotate?
6 | # Position bbox on a new paper
8 | paper(w=210mm,h=297mm,pos=(t|b|c)(l|r|c))
10 | # Scale paper to a new size
12 | scaleto(w=210mm,h=297mm,pos=tl)
14 | # Fit image to a paper
15 | # If paper is given: scale image
16 | # If no paper is given: adjust paper to image + margins
19 | margin= hmargin= vmargin=
20 | lmargin= rmargin= tmargin= bmargin=
25 | expand(h=10mm, v=20mm)
26 | expand(l=10mm, r=10mm, t=10mm, b=10mm)
28 | # Adjust image size (in terms of margins around)
29 | margins ... params like expand
32 | mark=box # Box around image
33 | mark=cross # Crosses in the corners
34 | mark=out # Out-pointing half-crosses in the corners (default)
35 | mark=in # In-pointing half-crosses
36 | mark=bg # Colored background
37 | pen=1pt # Line width
38 | len=5mm # Cross arm length
39 | offset=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=rows/cols # Filling order (default: rows)
68 | by=tile # Tile with copies of a single page
69 | paper / w / h # Specify paper size, default=copy from 1st image
70 | + fit options (*margin, pos)
71 | tpos=... # Position of images inside their tiles (default: tl)
72 | crop # Crop to image
73 | mixed # Allow images of different sizes
74 | rotate=1 # Override rotation decision
75 | scale=1 # Override scaling factor
76 | hspace / vspace / space # Distance between tiles
77 | cmark, cpen, clen, coffset, ccolor # Cropmark parameters
79 # Send pages to multiple pipes and merge their results
81 cat # Concatenate results (default is interleave)
82 cycle # When one pipe ends earlier, cycle it from start
83 pad # When one pipe ends earlier, add blank pages