joseevillasmil/php-watermarker
Composer 安装命令:
composer require joseevillasmil/php-watermarker
包简介
An update of php-watermarker, this is not mine but now you can use it in laravel 5 :)
README 文档
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
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-12-11