作者:啊沙发的非飞 | 来源:互联网 | 2023-01-21 15:43
我正在尝试使用wkhtmltopdf phpwrapper 生成基本的pdf .我也在使用yii框架.
这是我的HTML:
test
我在wktmltopdf中的设置:
$pdfParams = array(
'header-html' => $this->tmpHeaderFile->getFileName(),
'footer-html' => $this->tmpFooterFile->getFileName(),
'username' => 'myUser',
'password' => 'myPass',
);
$this->pdf = new Pdf($pdfParams);
我得到的错误:
Exception 'Exception' with message 'Could not create PDF: Loading pages (1/6)
[> ] 0%
[======> ] 10%
[==============================> ] 50%
[============================================================] 100%
Counting pages (2/6)
[============================================================] Object 1 of 1
Resolving links (4/6)
[============================================================] Object 1 of 1
Loading headers and footers (5/6)
[===> ] 5%
[======> ] 10%
[======> ] 10%
[=======> ] 13%
[==========> ] 17%
[==================================> ] 57%
[====================================> ] 61%
Warning: Failed to load https://work.mydomain.com/devs/florian/web//devs/florian/web/themes/css/report-footer.css (ignore)
[============================================================] 100%
Printing pages (6/6)
[> ] Preparing
[============================================================] Page 1 of 1
Done
Exit with code 1 due to network error: ContentNotFoundError'
知道问题是什么吗?