You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A little script that merges scanned pdf files together, if you scan two-sided documents with a single-sided sheet feed scanner.
3
+
4
+
This is written and tested with python3.
5
+
To run the script, pdfrw and argparse must be installed.
6
+
You get help by using the argument `-h`.
7
+
Because the even pages will mostly be scanned in reverse order after you scanned the odd ones and turn the whole pile around, there is the `--evenrev` argument which reverses the even pages before shuffling them together. You can do this with odd pages (`--oddrev`), too.
8
+
9
+
In `examplefiles/` some example pdfs are provided to test the tool.
10
+
11
+
If you would like to have some additional features, feel free to contribute or create an issue.
parser=argparse.ArgumentParser(description='Process scanned pdf documents. It takes two files, one with the front and one of the back of each page and shuffles them together into one single document.')
6
+
7
+
parser.add_argument('oddFile',
8
+
type=str,
9
+
nargs=1,
10
+
help='path to the pdf with all odd pages (starting from 1)',
11
+
default='examplefiles/odd.pdf')
12
+
13
+
parser.add_argument('evenFile',
14
+
type=str,
15
+
nargs=1,
16
+
help='path to the pdf with all even pages (starting from 2)',
17
+
default='examplefiles/even_rev.pdf')
18
+
19
+
parser.add_argument('resultFile',
20
+
type=str,
21
+
nargs=1,
22
+
help='path and name where the shuffled file should be stored',
0 commit comments