Skip to content

Short script for removing watermarks from PDF files. Requires pdftk.

Notifications You must be signed in to change notification settings

agarden/remove-pdf-watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

remove-pdf-watermark

Short script for removing watermarks from PDF files. Requires pdftk. Users of MacOS El Capitan (10.11) and above should download pdftk server version 2.02.

Tested only lightly. Works by using pdftk to uncompress the PDF, scans through the file for the supplied watermark text and removes the closest containing object, then recompresses with pdftk. Sometimes a watermark might not be represented as contiguous text in the PDF file. That would cause this to fail. Search for the watermark text is not careful to only match visible text. If the watermark happens to be some control word in PDF, then random objects will be deleted.

Not tested on Windows at all. Requires Python 3.

Not in anyway guaranteed to produce a valid PDF.

About

Short script for removing watermarks from PDF files. Requires pdftk.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages