Skip to content

Commit dc496c5

Browse files
committed
Merge branch 'akostadinov-patch-1'
2 parents c152bb7 + 31dcdf2 commit dc496c5

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

README.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ Examples:
7676
stapler sel a.pdf b.pdf output.pdf
7777

7878
# generate a pdf file called output.pdf with the following pages:
79-
# 1, 4-8, 20-40 from a.pdf, 1-5 from b.pdf in this order
80-
stapler sel a.pdf 1 4-8 20-40 b.pdf 1-5 output.pdf
79+
# 1, 4-8 in 180° (D for down), 20-40 from a.pdf, 1-5 from b.pdf in
80+
# this order
81+
stapler sel a.pdf 1 4-8D 20-40 b.pdf 1-5 output.pdf
8182

8283
# reverse some of the pages in a.pdf by specifying a negative range
8384
stapler sel a.pdf 1-3 9-6 10 output.pdf
@@ -130,8 +131,10 @@ Examples:
130131
# combine a pdf with odd pages and a pdf with even pages into output.pdf
131132
stapler zip odd.pdf even.pdf output.pdf
132133

133-
# combine a.pdf b.pdf and c.pdf, but use only some pages of c.pdf
134-
stapler zip a.pdf b.pdf c.pdf 1-3 output.pdf
134+
# combine a.pdf b.pdf and c.pdf, but use only some pages of c.pdf and
135+
# rotate b.pdf right (90° clockwise) and rotate c.pdf left (90° counter-
136+
# clockwise)
137+
stapler zip a.pdf b.pdf 1-endR c.pdf 1-3L output.pdf
135138

136139
If one of the ranges is shorter than the others, stapler will continue
137140
to merge the remaining pages.

staplelib/stapler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
usage: %prog [options] mode input.pdf ... [output.pdf]
1515
1616
Modes:
17-
cat/sel: <inputfile> [<pagerange>] ... (output needed)
17+
cat/sel: <inputfile> [<pagerange>[<rotation>]] ... (output needed)
1818
Select the given pages/ranges from input files.
1919
No range means all pages.
2020
del: <inputfile> [<pagerange>[<rotation>]] ... (output needed)

0 commit comments

Comments
 (0)