Skip to content

A tool to mass watermark pdf files in a folder.

Notifications You must be signed in to change notification settings

Shosta/MassWatermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stamped your Pdf File with a List of Names

Imagine that you have a pdf file that you want to share to a bunch of people.

However that pdf file is confidential, so you want to make these people aware of their responsibilities and be able to know who's responsible in case there's a leak.

👨‍💻Installation


👉Install Script

Just launch the install script

./install.sh

👉Manual Install

Install Go 🐭

Be sure that you have Go installed on your device as we are going to use a Go package. If you want to install Go on your device, you can follow this link from the Go website.

Install the Pdf Library 🗃

The Go package we are going to use is pdfcpu.

To run this package, the required build version is Go 1.9 and up.

go get github.com/hhrutter/pdfcpu/cmd/...

Add the execution rights to the shell file "stamp.sh" and "watermark.sh".

chmod +x stamp.sh
chmod +x watermark.sh

👨‍🏫Usage


Just use the help function from the script to understand how to use it :

./stamp.sh --help
or
./stamp.sh -h

You can launch the Shell script directly from the directory where it is located :

./stamp.sh -l list.txt -f myConfidential.pdf - outputFolder/
./watermark.sh -l list.txt -f myConfidential.pdf - outputFolder/

Or you can make the script available system-wide.

You just have to add a symbolink link to the script to the /usr/local/bin to make it available system-wide :

ln -s /path/to/stamp.sh /usr/local/bin/stamp
ln -s /path/to/watermark.sh /usr/local/bin/watermark

So you can now use it system-wide through :

stamp -l list.txt -f myConfidential.pdf - outputFolder/
watermark -l list.txt -f myConfidential.pdf - outputFolder/

About

A tool to mass watermark pdf files in a folder.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages