- page->index: use or remove
- rename page->bbox to page->image_box?
-# Position bbox on a new paper
-paper("a4")
-paper(w=210mm,h=297mm,pos=(t|b|c)(l|r|c))
+| # Position bbox on a new paper
+| paper("a4")
+| paper(w=210mm,h=297mm,pos=(t|b|c)(l|r|c))
-# Scale paper to a new size
-scaleto("a4")
-scaleto(w=210mm,h=297mm,pos=tl)
+| # Scale paper to a new size
+| scaleto("a4")
+| scaleto(w=210mm,h=297mm,pos=tl)
-# Fit image to a paper
-# If paper is given: scale image
-# If no paper is given: adjust paper to image + margins
-fit("a4")
-fit(w=, h=)
-margin= hmargin= vmargin=
-lmargin= rmargin= tmargin= bmargin=
-pos=
+| # Fit image to a paper
+| # If paper is given: scale image
+| # If no paper is given: adjust paper to image + margins
+| fit("a4")
+| fit(w=, h=)
+| margin= hmargin= vmargin=
+| lmargin= rmargin= tmargin= bmargin=
+| pos=
-# Adjust paper size
-expand(10mm)
-expand(h=10mm, v=20mm)
-expand(l=10mm, r=10mm, t=10mm, b=10mm)
+| # Adjust paper size
+| expand(10mm)
+| expand(h=10mm, v=20mm)
+| expand(l=10mm, r=10mm, t=10mm, b=10mm)
-# Adjust image size (in terms of margins around)
-margins ... params like expand
+| # Adjust image size (in terms of margins around)
+| margins ... params like expand
cropmarks
style=box # Box around image
duplex
long-edge
-merge
+| merge
modulo
half