joseevillasmil / php-watermarker
There is no license information available for the latest version (1.1) of this package.
An update of php-watermarker, this is not mine but now you can use it in laravel 5 :)
1.1
2018-12-11 14:33 UTC
Requires
- php: ^5.6.37 || ^7.0
This package is not auto-updated.
Last update: 2024-09-26 17:57:53 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