Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

nkh-lab/python-pdf-tools

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.