japseyz / simple-jdf
此包已废弃且不再维护。未建议替代包。
用于创建简单JDF消息的包
v1.0.3
2021-05-04 19:45 UTC
Requires
- php: ^7.4||^8.0
- ext-curl: *
Requires (Dev)
- orchestra/testbench: ^5.3
- phpunit/phpunit: ^9.2
This package is auto-updated.
Last update: 2023-08-06 22:56:08 UTC
README
用于创建简单JDF消息的包
JDF是一种XML标准,用于向数字打印机发送文件。
安装
composer require japseyz/simple-jdf
使用方法
创建新的JDF文件
// instantiate a Job
$job = new \JapSeyz\SimpleJDF\Job();
// add a new print file to the Job
$job->setPrintFile('http://absolute/path/to/file.pdf');
// save the raw JDF to a file
file_put_contents('filename.jdf', $job->asXML());
致谢
感谢Joe Pritchard为其JoePritchard/jdf包,本包基于此包。