将 HTML 页面转换为 PDF 时出现图片重叠问题

发布于 2024-09-27 09:13:12 字数 574 浏览 2 评论 0原文

我想重叠图片,但它不起作用,我需要一些帮助。

这是我要转换的页面的链接: http://9m9.com/innovative/sample/two.html

我想转换将此页转换为 PDF。您可以看到小图像与大图像重叠。

在该页面中,您可以单击链接将页面转换为 PDF。
http://citysoftsolutions.com/eclients/virtualtour/view_property_images.php ?pid=9&uid=67

正如你所看到的,图像被放置在大图像的后面。
我正在使用此转换器脚本: http://mpdf.bpm1.com/

I want to overlap pictures, but it is not working and I need some help.

Here's the link to the page I'd like to convert:
http://9m9.com/innovative/sample/two.html

I want to convert this page to a PDF. You can see the small image overlapping the bigger one.

This is the page where you can click on a link that will convert the page to PDF.
http://citysoftsolutions.com/eclients/virtualtour/view_property_images.php?pid=9&uid=67

As you can see the image is placed behind the big image.
I'm using this converter script: http://mpdf.bpm1.com/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

同尘 2024-10-04 09:13:12

当我使用 PrimoPDF 驱动程序打印它时,效果很好。最后一张图片很容易被覆盖。所以您正在使用的脚本肯定存在错误。

我有什么建议?

  1. 如果您想“即时”将页面转换为 PDF,我建议您
    • 联系脚本创建者并告知他们脚本中的错误
    • 使用不同的脚本(我会查看这个问题对您有帮助)
  2. 如果您只想提供页面的 PDF,我建议您安装 PDF 打印机驱动程序(例如我正在使用的 PrimoPDF)并自行打印这些页面并使用它们。

我不为 Nitro PDF Software 公司工作,也与他们没有任何关系。所以这不是我为他们的产品/服务做广告。

旁注有

件事告诉我,您实际上想做的是创建 PDF 传单/促销材料或其他内容。如果这确实是您所追求的,我建议您使用一些专门用于此类工作的软件来完成此操作。 Microsoft Office Word 就可以,但您最好使用其他软件。如果是一页传单,您可以使用 Adob​​e Illustrator 或 CorelDraw。但如果它是一个实际的多页文档,请使用 Word 或 Adob​​e InDesign 等软件。

Word 可能是您可以轻松掌握的东西。所以就选择那个吧。

When I printed it using PrimoPDF driver it came out just fine. Last image was easily laid over. So there must be a bug with the script you're using.

What do I suggest?

  1. If you'd like to convert your pages to PDFs "on the fly" I suggest you either
    • contact script creator and inform them of a bug in the script
    • use a different script (I'd check out this question that can help you)
  2. If you'd like to just provide PDFs of your page I suggest you install a PDF printer driver (like PrimoPDF that I'm using) and print those pages yourself and use those.

I'm not working for Nitro PDF Software company nor am I related to them in any way. So this is not me advertising their products/services.

On a sidenote

Something's telling me that what you'd actually like to do is to create a PDF flyer/promo material or something. If that's actually what you're after I suggest you do that using some software that's meant for such a job. Microsoft Office Word will do, but you'll better off using some other. If it's a one page leaflet you could use Adobe Illustrator or CorelDraw. But if it's going to be an actual multipage document use something like Word or Adobe InDesign.

Word is probably something you can easily master. So go with that one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文