Skip to content

convert pdf to imgs, then remove the watermark and convert them to pdf.

License

Notifications You must be signed in to change notification settings

frankcbliu/pdf-watermark-remove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

pdf-watermark-remove

convert pdf to imgs, then remove the watermark and convert them to pdf.

Usage

  1. need to install poppler

on Mac, use:

brew install poppler
  1. change the paths

open remove-watermark.py, and then change these to your own file/dir path

put the pdf file need to remove-watermark under the input_dir; and then create a output_dir to receive the pdf after converting; the most important, create a empty image dir to be the img_dir.

# source pdf path
input_dir = '/Users/frank/Code/Python/from'
# target pdf path
output_dir = '/Users/frank/Code/Python/to'
# temp image dir path
img_dir = '/Users/frank/Code/Python/temp'

Notice! img_dir must be a empty dir, because the code will delete all the jpg file under the img_dir after completing the conversion.

  1. run the code

About

convert pdf to imgs, then remove the watermark and convert them to pdf.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages