Metadata-Version: 2.4
Name: PageSizey
Version: 1.0.0
Summary: A small package to map paper size dimensions to ANSI or ISO page size codes
Project-URL: Homepage, https://patabid.com
Project-URL: Issues, https://github.com/patabid/PageSizey/issues
Author-email: Melvin Newman <melvin@patabid.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# PageSizey
## Sizing your paper

PageSizey is a simple module written to facilitate getting the most likely paper page size from a set of input dimensions.

Its primary use case is to identify the most likely page size code (ex. A4) from the `CropBox` feature in a pdf. 

## Installation
```
pip install PageSizey
```
## Example:
```
from pagesizey import page_size

size = page_size(8.5, 11) # inch page size in this case, mm values can also be used

print(size)
```

## Returns
```
{
    'standard': 'ansi',
    'size': 'a',
    'common_name': 'letter', # This only appears if there is a common name
}
```

# License
Simple, MIT, no warranty implied or given.

Copywrite 2025 [PataBid Inc.](https://patabid.com)
