【发布时间】:2020-03-09 13:10:25
【问题描述】:
我正在使用 Django 和 this solution 将受保护的网页转换为 pdf。
该解决方案效果很好,除了网页包含未显示在 pdf 中的图像并且我收到错误的部分
Warning: Failed to load file:///media/images/main/logo.jpg (ignore)
我目前使用的from_string方法如下
pdfkit.from_string(msg_html, 'testing123.pdf') #msg_html contains html string with images
【问题讨论】: