- Integrate pdf-tools.cc with the rest of the code
- What if an input page specifies /Rotate?
-- Better error messages from instantiation
-- page->index: use or remove
-- rename page->bbox to page->image_box?
+- "-f" switch
+- What should do modulo(half) with an odd number of tuples? Improve, or at least document.
+- Modulo with last tuple incomplete: sometimes, not padding the last tuple can be useful
+ (e.g., "flip every other page")
+- Document use of negative numbers in ranges
+- Allow use of page labels to refer to pages
+- Better range syntax for "from N to end" or "the whole document"
+- nup: allow stacking ("1 3 5 7" "2 4 6 8")
-# Position bbox on a new paper
-paper("a4")
-paper(w=210mm,h=297mm,pos=(t|b|c)(l|r|c))
+Ideas for further commands:
-# Scale paper to a new size
-scaleto("a4")
-scaleto(w=210mm,h=297mm,pos=tl)
+# Can be written as: mix(cat) { modulo(2){1}, modulo(2){2} }
+duplex
+ long-edge
-# 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 image size (in terms of margins around)
-margins ... params like expand
+# Send pages to multiple pipes and merge their results
+mix { ..., ..., ...}
+ cat # Concatenate results (default is interleave)
+ cycle # When one pipe ends earlier, cycle it from start
+ pad # When one pipe ends earlier, add blank pages