Skip to content

A simple program to remove the watermark from a PDF file.

Notifications You must be signed in to change notification settings

LJSthu/Python-Remove-Watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-Remove-Watermark

A simple program to remove the watermark from a PDF file.

How?

  1. convert the PDF file into images using pdf2image
  2. convert the images to numpy array
  3. find the specific pixel by watermarks' rgb values and change them into (255,255,255)
  4. save the modified images

Environment

First you need to install the dependencies:

$ pip install pdf2image
$ pip install scikit-image

Inside the repository create a directory that will receive the modified images:

$ mkdir jiangyi3

To execute:

$ python watermark.py

Don't forget to indicate the pdf's path you want to convert.

Results

image

About

A simple program to remove the watermark from a PDF file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages