【发布时间】:2013-05-07 00:11:42
【问题描述】:
我在 python 中编写了一个脚本,该脚本生成 matplotlib 图形并使用 reportlab 将它们放入 pdf 报告中。
我在将 SVG 图像文件嵌入我的 PDF 文件时遇到了困难。我在使用 PNG 图像时没有遇到任何问题,但我想使用 SVG 格式,因为这样可以在 PDF 报告中生成质量更好的图像。
这是我收到的错误消息:
IOError: cannot identify image file
有没有人有建议或者你以前解决过这个问题吗?
【问题讨论】:
标签: python pdf svg matplotlib reportlab