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?
7 # Position bbox on a new paper
9 paper(w=210mm,h=297mm,pos=(t|b|c)(l|r|c))
11 # Scale paper to a new size
13 scaleto(w=210mm,h=297mm,pos=tl)
15 # Fit image to a paper
16 # If paper is given: scale image
17 # If no paper is given: adjust paper to image + margins
20 margin= hmargin= vmargin=
21 lmargin= rmargin= tmargin= bmargin=
26 expand(h=10mm, v=20mm)
27 expand(l=10mm, r=10mm, t=10mm, b=10mm)
29 # Adjust image size (in terms of margins around)
30 margins ... params like expand