Skip to main content

Print number of PAGes in PDF files.

Project description

INSTALLATION

    $ pip3 install pagpdf

HELP

    $ pagpdf -h

USAGE

    $ pagpdf [-h] [-V] [-c] [-n] [-r] [-t] [-T] [file [file ...]]


Print number of PAGes in PDF files.

This simple utility prints file counter, number of pages and filename
for each given pdf file. Fields are separated by a '\t' (horizontal tab)
character.

Non-pdf files are silently skipped.

Empty or erroneous pdf files are reported as containing zero pages.

Examples:

    $ pagpdf * # list number of pages of all pdf files in current path

    $ pagpdf * 2>/dev/null # leave out warnings from pdfrw.PdfReader

POSITIONAL ARGUMENTS

  file                 files to be listed (non-pdf files are silently skipped)

OPTIONAL ARGUMENTS

  -h, --help           show this help message and exit
  -V, --version        show program's version number and exit
  -c, --csv-header     print CSV header as first line (default: don't)
  -n, --sort-by-pages  sort files by number of pages (default: sort by
                       filename)
  -r, --reverse        sort files in descending order (default: sort in
                       ascending order)
  -t, --total-too      print file list and total line (default: print file
                       list)
  -T, --total-only     print total line only (default: print file list)

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

pagpdf-0.9.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

pagpdf-0.9.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file pagpdf-0.9.2.tar.gz.

File metadata

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

File hashes

Hashes for pagpdf-0.9.2.tar.gz
Algorithm Hash digest
SHA256 3d13229f149faa65507cccaac0d0fd29c5ec4d10a0eae11e54ad900b35769100
MD5 19d33c6993cea9f512427ddeb83f329d
BLAKE2b-256 29d8ef2f3329890b8a1f1db1b7944f68fc4ffd1263a0525f6f69464f305003b3

See more details on using hashes here.

File details

Details for the file pagpdf-0.9.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pagpdf-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4aa4ac68d5f477effae084ea46ab07bfe87d4b8d3080c7663e9d15a1d73344b
MD5 5a43c700cfe3fd4c60ee3df130d5e86d
BLAKE2b-256 c5461bd48201f5df339134ece54fd785037d4584f0d3527171e09dcf15a74ab5

See more details on using hashes here.

Supported by

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