This project provides simple Python command-line utilities for editing PDF files.
It includes the following tools:
extract_pages_pdf.py– Extracts specific pages from a PDF file.watermark_pdf.py– Adds a watermark to a PDF file. It takes an existing PDF file as input and overlays a configurable text watermark on each page. The watermark is rendered with transparency and rotation, making it suitable for common use cases such as marking documents as CONFIDENTIAL, INTERNAL, or DRAFT.
Install the required dependencies using:
pip install -r requirements.txt
extract_pages_pdf.py:
python src/extract_pages_pdf.py examples/sample-max485.pdf -p 2,3,7-9
watermark_pdf.py:
python src/watermark_pdf.py ./examples/sample-max485.pdf -t "Copyright (C) NKH Lab"
