Skip to main content

Counts the absolute number of pages in a PDF document, even if it is a compund document containing several PDF documents.

Project description

The pdf-page-counter module is used to determine the number of pages in a pdf document. The result is the total number of pages in a docuemnt, even if it is a compound document (like a printer stream file) that contains several PDF.

Getting started

See the Installing Packages instructions in the Python Packaging User Guide on installing, upgrading and uninstalling pdf-page-counter.

Make sure you uns an up-to-date version of pip.

Questions, comments and big reports as well as vulnerability reports can be directly submitted to teh maintainer: thomas.grasse@exercim.com.

Usage

The package can be used in 2 ways. When executed as the main package with: python3 -m pdf-page-count <filename>. The process ends with the page count returned as the process exit code.

The package can also be imported, by using: import pdfpagenumber. The function extractPdfPageCount is used with the path to the PDF file as argument, to determine the page count.

Licensing

The package is distributed under MIT license (link).

Copyright 2021 exercim Oy

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

pdf-page-count-1.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

pdf_page_count-1.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pdf-page-count-1.1.0.tar.gz.

File metadata

  • Download URL: pdf-page-count-1.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.6.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pdf-page-count-1.1.0.tar.gz
Algorithm Hash digest
SHA256 adc9028beb23c1b536077bc3f6461152beae00cc07fdb9cfddb093f50cd9a170
MD5 462b1a1aaf900d27b22d890d408f63d7
BLAKE2b-256 0ff65d7d2b2d71145ba6cd18a6ae5bc8bbc6cac4bef6568b89b53a8ba69c6366

See more details on using hashes here.

File details

Details for the file pdf_page_count-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pdf_page_count-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.6.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pdf_page_count-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 820b2581814c3f3a8fea2693d461fc9d27bab5b2ef8e8f5fc2b38a50a407035b
MD5 f5a9d3be01baf33c50a4cedc35254e73
BLAKE2b-256 e00a78721b0af33ef26cc479336d0283a3c0e23e98ca76e99d9589c3d8338a29

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