我正在使用Snappy PDF(Windows 10本地开发)
wkhtmltopdf --version
wkhtmltopdf 0.12.5 (with patched qt)
config\snappy.php
文件看起来像这样
<?php
return array(
'pdf' => array(
'enabled' => true,
'binary' => '"C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe"',
'timeout' => false,
'options' => array(),
'env' => array(),
),
'image' => array(
'enabled' => true,
'binary' => '"C:\Program Files\wkhtmltopdf\bin\wkhtmltoimage.exe"',
'timeout' => false,
'options' => array(),
'env' => array(),
),
);
突然停止工作
The exit status code '-1073740771' says something went wrong: stderr: "Loading pages (1/6) [> ] 0% [======> ] 10% [========> ] 14% [=================> ] 29% [=====================> ] 36% [========================> ] 41% QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files [==========================> ] 44% [===========================> ] 46% [=============================> ] 49% [============================================================] 100% " stdout: "" command: "C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe" --lowquality --orientation "landscape" --page-size "a5" --footer-right "Page [page] of [topage]"
此问题仅在Windows环境中。我检查了我在Ubuntu 16.0.4上的产品,它可以正常工作。
答案 0 :(得分:0)
我已将端口8080分配给物理打印机。 已更正,现在一切正常。