property-stamp-pdf
Add property stamps to PDF documents. A continuous vertical strip of metadata is printed on the left margin of every page.
Stamp Anatomy
The stamp follows this structure:
propertyfun: @algorembrant [0001.v1] 9 March 2026 https://huggingface.co/algorembrant/ML-3m-trader
- Font: Times New Roman (
Times-Roman) - Size: 11 pt
- Hyperlinks:
@algorembrantis clickable, and the repository URL is clickable. - Position: Vertically centered on the left margin.
Installation
1. Clone the repository
git clone https://huggingface.co/algorembrant/property-stamp-pdf
cd property-stamp-pdf
2. Install dependencies
pip install -r requirements.txt
Usage
python arxiv_stamp.py <input.pdf> "<note_or_statment>"
Example
python arxiv_stamp.py rust_ml_trader_audit.pdf "Audit Report v1.0"
Output: rust_ml_trader_audit_stamped.pdf
How It Works
- The source PDF is read page by page using
pypdf. - A stamp overlay PDF is rendered in memory using
reportlabwith the text rotated 90 degrees CCW. - The overlay is merged onto the original page.
- The final PDF is written to disk.
Author
Algorembrant (2026)
License
MIT License.
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support