Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我想将图像放入我正在使用 TCPDF 制作的 PDF 文件中。它是由在线 API 生成的图像,因此我无法将其存储在我的虚拟主机上。但是,当我放置用于创建的图像 URL 时,在生成 PDF 文件时出现错误。
TCPDF 只能使用保存在您的网络主机上的图像 - 本地文件,因为它需要图像的物理路径才能将其包含在文档中。您可以从 HTTP 抓取图像以用于 TCPDF 的唯一方法是使用 cURL,这是我仅用于文本和 html 的东西,但没有抓取图像的经验,但我确信有办法可以做到。