Skip to main content

Paper size related tools

Project description

papersize 📏 Paper size related tools

This module provides tools to manipulate paper sizes, that is:

  • a dictionary of several named standard names (e.g. A4, letter) , with their respective sizes (width and height);
  • functions to convert sizes from one unit (e.g. inches) to another (e.g. centimeters);
  • functions to manipulate paper orientation (portrait or landscape);
  • tools to parse paper sizes, so that you do not have to worry about the format of paper sizes provided by your user, it being "a4" or "21cm x 29.7cm".

What's new?

See changelog.


See the end of list for a (quick and dirty) Debian package.

  • From sources:

  • From pip:

    pip install papersize
  • Quick and dirty Debian (and Ubuntu?) package

    This requires stdeb to be installed:

      python3 --command-packages=stdeb.command bdist_deb
      sudo dpkg -i deb_dist/python-papersize-<VERSION>_all.deb


  • Current python version:

    python3 test
  • All supported python versions (using tox):



The documentation is available on readthedocs. You can build it using:

cd doc && make html

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

papersize-1.5.0.tar.gz (35.5 kB view hashes)

Uploaded Source

Built Distribution

papersize-1.5.0-py3-none-any.whl (28.0 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