Skip to content

nkh-lab/python-pdf-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

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.

Python Dependencies

Install the required dependencies using:

pip install -r requirements.txt

How To Run

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"

About

Python command-line utilities for editing PDF files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages