joseevillasmil / php-watermarker
An update of php-watermarker, this is not mine but now you can use it in laravel 5 :)
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/joseevillasmil/php-watermarker
Requires
- php: ^5.6.37 || ^7.0
This package is not auto-updated.
Last update: 2025-10-23 23:10:24 UTC
README
<?php use joseevillasmil\watermarker\PDFWatermark; use joseevillasmil\watermarker\PDFWatermarker; //Specify path to image $watermark = new PDFWatermark('C:\myimage.png'); //Specify the path to the existing pdf, the path to the new pdf file, and the watermark object $watermarker = new PDFWatermarker('C:\test.pdf','C:\output.pdf',$watermark); //Set the position $watermarker->setWatermarkPosition('bottomleft'); //Save the new PDF to its specified location $watermarker->save(); ?>
Five positions can be used. 'center' is the default.
- center
- topleft
- topright
- bottomright
- bottomleft