Skip to main content

A small package to map paper size dimensions to ANSI or ISO page size codes

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pagesizey-1.0.0-2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pagesizey-1.0.0-2-py3-none-any.whl.

File metadata

  • Download URL: pagesizey-1.0.0-2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pagesizey-1.0.0-2-py3-none-any.whl
Algorithm Hash digest
SHA256 03d7d61a674d15d6debd367f119e352dff353cd0eb4bf7caf0981bd22a4881de
MD5 fd9ce1a8c76377c3cbbe68c51cc13f97
BLAKE2b-256 163668ada7b88e4a9868ba2e29a3df1310daf04cec51a5868071aee05d02717b

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