]> mj.ucw.cz Git - paperjam.git/blob - TODO
e0f9465351164a77d0f46dd577d8fd1b9fa08cf4
[paperjam.git] / TODO
1 - Integrate pdf-tools.cc with the rest of the code
2 - What if an input page specifies /Rotate?
3 - "-f" switch
4 - Help
5 - Parameters vs. arguments
6 - More precise parsing errors
7
8 | # Position bbox on a new paper
9 | paper("a4")
10 | paper(w=210mm,h=297mm,pos=(t|b|c)(l|r|c))
11
12 | # Scale paper to a new size
13 | scaleto("a4")
14 | scaleto(w=210mm,h=297mm,pos=tl)
15
16 | # Fit image to a paper
17 | # If paper is given: scale image
18 | # If no paper is given: adjust paper to image + margins
19 | fit("a4")
20 | fit(w=, h=)
21 | margin= hmargin= vmargin=
22 | lmargin= rmargin= tmargin= bmargin=
23 | pos=
24
25 | # Adjust paper size
26 | expand(10mm)
27 | expand(h=10mm, v=20mm)
28 | expand(l=10mm, r=10mm, t=10mm, b=10mm)
29
30 | # Adjust image size (in terms of margins around)
31 | margins ... params like expand
32
33 | cropmarks
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
38 |       mark=bg         # Colored background
39 |       pen=1pt         # Line width
40 |       len=5mm         # Cross arm length
41 |       offset=5mm      # Distance from border
42 |       color="RRGGBB"
43
44 | book
45 |       signature=<n>
46
47 | # Clip to image box
48 | clip
49 |       bleed=5mm       # Allow bleeding over the image box
50
51 # Can be written as: mix(cat) { modulo(2){1}, modulo(2){2} }
52 duplex
53         long-edge
54
55 | merge
56
57 | modulo
58 |       half
59
60 | # Add an empty page after the current one
61 | add-blank
62 |       n=
63 |       paper...
64
65 | # Set either:
66 | #     - paper size + margins
67 | #     - scale + margins
68 | nup(hnum, vnum)
69 |       by=rows/cols    # Filling order (default: rows)
70 |       by=tile         # Tile with copies of a single page
71 |       paper / w / h   # Specify paper size, default=copy from 1st image
72 |       + fit options (*margin, pos)
73 |       tpos=...        # Position of images inside their tiles (default: tl)
74 |       crop            # Crop to image
75 |       mixed           # Allow images of different sizes
76 |       rotate=1        # Override rotation decision
77 |       scale=1         # Override scaling factor
78 |       hspace / vspace / space # Distance between tiles
79 |       cmark, cpen, clen, coffset, ccolor      # Cropmark parameters
80
81 # Send pages to multiple pipes and merge their results
82 mix { ..., ..., ...}
83         cat             # Concatenate results (default is interleave)
84         cycle           # When one pipe ends earlier, cycle it from start
85         pad             # When one pipe ends earlier, add blank pages