Metadata-Version: 2.1
Name: pdf-page-count
Version: 1.1.0
Summary: Counts the absolute number of pages in a PDF document, even if it is a compund document containing several PDF documents.
Home-page: https://github.com/ThomasGrasse/pdf-page-counter
Author: Thomas Grasse
Author-email: thomas.grasse@exercim.com
Maintainer: Thomas Grasse
Maintainer-email: thomas.grasse@exercimn.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

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](https://packaging.python.org/installing/) 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](https://opensource.org/licenses/MIT)).

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.



