owenoj/pdf-password-protect
最新稳定版本:v0.9
Composer 安装命令:
composer require owenoj/pdf-password-protect
包简介
Laravel package to password protect pdfs
关键字:
README 文档
README
Simple wrapper package around MPDF's setProtection method that allows you to set password on PDF files.
Installation
You can install the package via composer:
composer require owenoj/pdf-password-protect
Usage
You can use via Facade like so:
PDFPasswordProtect::encrypt(storage_path('pdf/document.pdf'),storage_path('pdf/'.'encrypted-documented.pdf'),'janedoe');
Encrypt method in detail
- $inputFile and $outputFile has to be a path like
storage_path("pdf/document.pdf")
PDFPasswordProtect::encrypt($inputFile,outputFile,$password)
The final file will be located in storage/pdf as encrypted-document.pdf
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email owen.j@terktrendz.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
统计信息
- 总下载量: 2.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-27