INSTALLATION
$ pip3 install swapdf
HELP
$ swapdf -h
USAGE
$ swapdf [-h] [-V] [-v] [-y] [-n] [-o] [-q] [source] target
SWAP PDF pages after scan of a two-sided sheet pack through a one-sided feeder.
swapdf is the typical example of a program written in order to scratch a single itch.
Let's have a two-sided sheet pack we want to scan through a one-sided feeder. Then:
- we open the scan utility, say simple-scan aka Document Scanner
- we click the "All Pages From Feeder" option
- we scan all odd pages
- then we turn upside down the pack and we put it again in the feeder
- we scan all even pages
- finally we save our pages in a file, say 'Scanned Document.pdf'
Now 'Scanned Document.pdf' contains odd pages in ascending order, followed by even pages in
descending order.
For instance, say our sheets are 4, so our pages are 8, so 'Scanned Document.pdf' contains
the pages:
1 3 5 7 8 6 4 2
We issue at terminal:
$ swapdf 'Scanned Document.pdf' mydoc.pdf
or simply:
$ swapdf mydoc.pdf
because 'Scanned Document.pdf' is the default input file.
Now mydoc.pdf contains the pages:
1 2 3 4 5 6 7 8
in the right order.
POSITIONAL ARGUMENTS
source source file with pages from scanner 1 3 5 ... 6 4 2, default
= 'Scanned Document.pdf'
target target file with swapped pages 1 2 3 4 5 6 ...
OPTIONAL ARGUMENTS
-h, --help show this help message and exit
-V, --version show program's version number and exit
-v, --verbose show what happens
-y, --yes overwrite existing target file (default: ask)
-n, --no don't overwrite existing target file (default: ask)
-o, --open at end open the target file for check and print (default:
ask)
-q, --quit at end don't open the target file for check and print
(default: ask)
Metadata
Release files for swapdf 0.9.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| swapdf-0.9.9.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swapdf-0.9.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / swapdf-0.9.9.tar.gz
| Download URL | swapdf-0.9.9.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
582a9323f54778bfa94f17eaceb560818c1deeacadad00c0967846210fa93061
|
|
BLAKE2b-256 checksum How to use checksums |
5f9a2fe5c962ad89e3831ed3812f95185cf9146373511b1355e2e77a78976252
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.23.0
|
Release files / swapdf-0.9.9-py3-none-any.whl
| Download URL | swapdf-0.9.9-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2958a7eb5cabf9694dc99af385d536fb876fae414e8ce135d395da361e07fc6
|
|
BLAKE2b-256 checksum How to use checksums |
5a427147a3798972adfe40cf6fb1087bcc325aed70e465eac25cc219ecd7dfed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.23.0
|
Security for swapdf 0.9.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.