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.0.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

dummypdf-2.1.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dummypdf-2.1.0.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for dummypdf-2.1.0.tar.gz
Algorithm Hash digest
SHA256 b6742998f295c889b7c60d7d4539c9cc772b68abc0feab82bc56e16388144399
MD5 d3b110308c601b6b9501599346a5320b
BLAKE2b-256 0fecb55ace031c73d6bce944e0be5f231c73c575491f17dd0ab0889d1c41e147

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dummypdf-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for dummypdf-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 933d8522eb110975f3e0843f124527b2eb69519cc498587f0a32ceb4ba6c01e8
MD5 0cb12af7389b906c30fc14347035b7eb
BLAKE2b-256 93f44ce2635a95cf64ae170389b8ac3289396a2154bbd900483558683bb2ae6d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page