Skip to main content

Sort pdf pages after scan of a two-sided sheet pack through a one-sided feeder.

Project description

usage: swapdf [-h] input_file output_file

swapdf 0.9.1

Sort pdf pages after scan of a two-sided sheet pack through a one-sided feeder.

Let's have a two-sided sheet pack we want scan through a one-sided feeder. Then:

- we open the scan utility, namely simple-scan
- we click the "All Pages From Feeder" option
- we scan all odd pages
- then we put again the pack upside down in the feeder
- we scan all even pages
- finally we save our pages in a file, say scanned.pdf

Now scanned.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, and scanned.pdf contains the pages:

1 3 5 7 8 6 4 2

We issue at terminal:

$ swapdf scanned.pdf mydoc.pdf
'scanned.pdf' -> 8 pages -> 'mydoc.pdf'

Now mydoc.pdf contains the pages:

1 2 3 4 5 6 7 8

in the right order.

positional arguments:

input_file   pages from scanner 1 3 5 ... 6 4 2
output_file  swapped pages 1 2 3 4 5 6 ...

optional arguments:

-h, --help   show this help message and exit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swapdf-0.9.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swapdf-0.9.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file swapdf-0.9.1.tar.gz.

File metadata

  • Download URL: swapdf-0.9.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for swapdf-0.9.1.tar.gz
Algorithm Hash digest
SHA256 d58ce91c4b08f16b45ef34565010541a992c8fd448656ff5e09b0fed49003282
MD5 65e5217fe7fc422a3d31e910646612f8
BLAKE2b-256 2e6574b546cdbb6f729488becaa2844fbe35d7a1358b8a5b8bf0ecb62a8c04ce

See more details on using hashes here.

File details

Details for the file swapdf-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: swapdf-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for swapdf-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bcc6e618cbf4f72f0ae1f280d5d5f6bc5ff56f19199c283bcdee4ef84067a9ae
MD5 21ba41d88b8e458866b9ecdaa9d19d6f
BLAKE2b-256 e208418e1af4f61e5537ad08fa90d0c216ad4e83ce908115e0471bd21a8dc180

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page