Skip to main content

SWAP PDF pages after scan of a two-sided sheet pack through a one-sided feeder.

Project description

###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.

Let's have a two-sided sheet pack we want 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

(Of course we need quotation marks because the blank in the file name)

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
  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)

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.5.tar.gz (2.9 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.5-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for swapdf-0.9.5.tar.gz
Algorithm Hash digest
SHA256 832924bb846ba59d74acbdefbe27cbfe098905ab7590e2ca776767abdf69be7d
MD5 7c3c2d5befb0d9a331d859e0ee3d7b11
BLAKE2b-256 bdfd12c76ec3b03e750f10801a77203a519f3bb1f4a18e09d0aac7df8f9c2385

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for swapdf-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 79ccaa2bf992044ae9decc42e7402ee6e397b76ba47ffe8aaa22eb682bde775f
MD5 a884caa886f210a4db75db8e0316ebd8
BLAKE2b-256 34129fc6c93a53a429efe457d190588f539fbdbd44272c5fcdab79820c6f1271

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