joséevillasmil / php-watermarker
该软件包最新版本(1.1)没有提供许可信息。
php-watermarker的更新版本,这不是我的,但现在你可以在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(); ?>
可以使用五个位置。默认为'center'。
- center
- topleft
- topright
- bottomright
- bottomleft