baraja-core/php-pdf-to-image
最新稳定版本:v2.0.1
Composer 安装命令:
composer require baraja-core/php-pdf-to-image
包简介
Convert PDF to JPG, PNG or GIF in PHP.
README 文档
README
Convert PDF to image and save to disk. Convert PDF to JPG, PNG or GIF in PHP.
???? Installation
It's best to use Composer for installation, and you can also find the package on Packagist and GitHub.
To install, simply use the command:
$ composer require baraja-core/php-pdf-to-image
You can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.
How to use
$configuration = new Configuration( pdfPath: __DIR__ . '/example.pdf', savePath: __DIR__ . '/example.jpg', format: 'jpg' ); // Render PDF to image and save to disk. \Baraja\PdfToImage\Convertor::convert($configuration);
Supported configuration options
| Name | Type | Default value |
|---|---|---|
pdfPath | string | |
savePath | string | |
format | string | 'jpg' |
trim | bool | false |
cols | int, null | null |
rows | int, null | null |
bestfit | bool | false |
???? License
baraja-core/php-pdf-to-image is licensed under the MIT license. See the LICENSE file for more details.
统计信息
- 总下载量: 14.63k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-01-04