ajaxray / markpdf

Watermark PDF files using image or text
GNU Affero General Public License v3.0
176 stars 35 forks source link

[Feature] Image tiles all over the page #24

Closed AnkurGel closed 1 year ago

AnkurGel commented 2 years ago

Synatax:

markpdf pdf.pdf ~/Downloads/logo.jpeg out.pdf -p10 -t

In above syntax, using -p to scale the image to 10% and -t to generate tiles all over the page. Result: pattern like below:

image

You can also use an additional flag -z or --spacing to add spacing b/w the tiles.

markpdf pdf.pdf ~/Downloads/logo.jpeg out.pdf -p10 -t -z20
image
AnkurGel commented 2 years ago

Hey @ajaxray. Did you get a chance to review this and the other PR?

ajaxray commented 1 year ago

@AnkurGel, This is another great addition to this tool. Will check and merge soon :)

ajaxray commented 1 year ago

Merged with many many thanks. 😄 I've added a new release based on the new features you've added. https://github.com/ajaxray/markpdf/releases/tag/1.0.1