The lack of open-source CLI tooling to handle digitally signing and stamping PDF files was bothering me, so I went ahead and rolled my own.
Note: The working title of this project (and former name of the repository on GitHub) was pdf-stamp
, which might still linger in some references.
Note: This project is currently in beta, and not yet production-ready.
The documentation for pyHanko is hosted on ReadTheDocs and includes information on CLI usage, library usage, and API reference documentation derived from inline docstrings.
PyHanko is hosted on PyPI,
and can be installed using pip
:
pip install 'pyHanko[pkcs11,image-support,opentype,xmp]'
Depending on your shell, you might have to leave off the quotes:
pip install pyHanko[pkcs11,image-support,opentype,xmp]
This pip
invocation includes the optional dependencies required for PKCS#11, image handling and
OpenType/TrueType support.
PyHanko requires Python 3.8 or later.
Do you have a question about pyHanko? Post it on the discussion forum!
This project welcomes community contributions. If there's a feature you'd like to have implemented, a bug you want to report, or if you're keen on contributing in some other way: that's great! However, please make sure to review the contribution guidelines before making your contribution. When in doubt, ask for help on the discussion board.
Please do not ask for support on the issue tracker. The issue tracker is for bug reports and actionable feature requests. Questions related to pyHanko usage and development should be asked in the discussion forum instead.
The code in this repository functions both as a library and as a command-line tool. Here is a short overview of the features. Note that not all of these are necessarily exposed through the CLI.
[opentype]
optional deps)cryptography
library,
see here.click
pyhanko
(when installed) or python -m pyhanko
when running from
the source directorypyhanko --help
to get startedSee the known issues page in the documentation.
This repository includes code from PyPDF2
(with both minor and major modifications); the original license has been included here.
MIT License, see LICENSE.