Skip to main content

Print number of PAGes in PDF files.

Project description

INSTALLATION

    $ pip3 install pagpdf

HELP

    $ pagpdf -h

USAGE

    $ pagpdf [-h] [-V] [-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.

Non-pdf files are silently discarded.

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

OPTIONAL ARGUMENTS

  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -n, --sort-by-num-of-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.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

pagpdf-0.9.1-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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