Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux wkhtmltopdf,使用标准输入时如何使用相对路径图像_Linux_Wkhtmltopdf - Fatal编程技术网

Linux wkhtmltopdf,使用标准输入时如何使用相对路径图像

Linux wkhtmltopdf,使用标准输入时如何使用相对路径图像,linux,wkhtmltopdf,Linux,Wkhtmltopdf,文件:sample.html、image.jpg sample.html: ... <img src='image.jpg'/> ... 。。。 ... 命令: cat sample.html | wkhtmltopdf-output.pdf 图像无法显示。此类问题应发布到superuser.com。但我在项目中使用了它,这也是一个编程问题。此类问题应在superuser.com上提出,但我不会将其迁移到那里而冒犯他们。请访问superuser.com并发布一个更完整的问题,包括

文件:sample.html、image.jpg

sample.html:

...
<img src='image.jpg'/>
...
。。。
...
命令:

cat sample.html | wkhtmltopdf-output.pdf


图像无法显示。

此类问题应发布到superuser.com。但我在项目中使用了它,这也是一个编程问题。此类问题应在superuser.com上提出,但我不会将其迁移到那里而冒犯他们。请访问superuser.com并发布一个更完整的问题,包括更多的描述、文本、您的经历等。您是否查看了生成的文件?它是图像文件吗?无论如何,我在这里结束这个问题,作为一个非问题。这种问题有时会被问到。这与wkhtmltopdf的使用有关,我的答案通常与编程密切相关。我刚刚回答了一个问题:@LasseV.Karlsen我是一个程序员,正在寻找这个问题的解决方案,我个人觉得这个问题有很多细节,可以弄清楚到底发生了什么。。。我认为这是错误的关闭