Skip to main content

Generate dummy pdf files with configurable paper size and number of pages.

Project description

Check out my other PDF tools: pdfautonup | pdfimpose.

Paper size and number of pages are configurable. Files can be used to test pdf manipulation tools.

Examples :

  • One page A4 paper: example1.pdf:

    dummypdf A4

  • Six pages, a third of an A4 paper: example2.pdf:

    dummypdf -n 6 -p 21cmx99mm

    or:

    dummypdf 21cmx99mm:6

  • A pdf with different page formats: different.pdf:

    dummypdf A4 A5:landscapewest

But why?

To develop or test PDF manipulating tools, I sometimes need to have files with a very specific size or number of pages. I can generate those files with this tool.

What’s new?

See changelog.

Download and install

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

  • From sources:

  • From pip:

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

    This requires stdeb to be installed:

    python3 setup.py --command-packages=stdeb.command bdist_deb
    sudo dpkg -i deb_dist/dummypdf-<VERSION>_all.deb

Documentation

  • The compiled documentation is available on readthedocs

  • To compile it from source, download and run:

    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

dummypdf-2.1.1.tar.gz (42.1 kB view details)

Uploaded Source

Built Distribution

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

dummypdf-2.1.1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file dummypdf-2.1.1.tar.gz.

File metadata

  • Download URL: dummypdf-2.1.1.tar.gz
  • Upload date:
  • Size: 42.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for dummypdf-2.1.1.tar.gz
Algorithm Hash digest
SHA256 4d41808f123bdcb381315cf30823c6432a0e13a36a4ed45e7768cc9d24a4f51c
MD5 3e25b2387d4223b789b6ff2eff37ed75
BLAKE2b-256 d950ac77cff21cee92dd5497f0657ac2b825347b7ae339b720bcbcd80aaa21f7

See more details on using hashes here.

File details

Details for the file dummypdf-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: dummypdf-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for dummypdf-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e02013461c7fbbc03f71137f7612edb759dcfa3856fd5d14484aa82b00947ebb
MD5 5bb85e53241986e9d719b622837b616f
BLAKE2b-256 e83ef453bb40532596bceb139d1d544c1a23a2863f922817ea18f94324fa5ce8

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