clippings/phantom-pdf
最新稳定版本:0.12.0
Composer 安装命令:
composer require clippings/phantom-pdf
包简介
A Package for generating PDF files using PhantomJS
关键字:
README 文档
README
Installation
Install via composer
$ composer global require clippings/phantom-pdf
Usage
$pdf = new PdfGenerator(); // Set a writable path for temporary files $pdf->setStoragePath('storage/path'); // Saves the PDF as a file $pdf->saveFromView($html, 'filename.pdf');
Use setBinaryPath('path') to use another version of PhantomJS.
Customizing the conversion script
If you want to use another script to execute with PhantomJS, this it how you do it.
$pdf->useScript('path/to/script'); return $pdf->saveFromView('view');
Credits
Forked from the great https://github.com/danielboendergaard/phantom-pdf package
Copyright (c) 2015, Clippings Ltd. Refactored by Ivan Kerin as part of clippings.com
统计信息
- 总下载量: 87.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-06