【问题标题】:abcpdf gecko not rendering imagesabcpdf壁虎不渲染图像
【发布时间】:2012-02-23 01:39:00
【问题描述】:

我正在尝试从 HTML 文档制作 PDF,并且该文档具有绝对链接的图像(即 C:/somewhere/html.htm),但是当我使用 abcpdf 8.1 AddImageUrl("file:\\"&absLocation,True,0,False) 时,生成的 pdf 没有没有图片。

有人知道如何让图片显示出来吗?

附加信息:当使用 vbscript 和默认 mshtml 作为引擎时,它都完美地保存为 pdf,但在 asp 中它根本没有使用 mshtml 保存。因此切换到 Gecko。

我在装有 IE9 的 Windows Server 2008 R2 Standard 64 位机器上使用它。

【问题讨论】:

    标签: asp-classic abcpdf


    【解决方案1】:

    我想通了!我还必须将 file:// 添加到我在 html 中的图片引用。

    所以 IMG 元素应该是这样的:

    <img src="file://c:\directorys\image.png" alt="There should be an image here />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-17
      • 2022-12-21
      • 2013-07-06
      • 2020-01-16
      相关资源
      最近更新 更多