将 HTML 文件转换为 PDF

发布于 2024-09-28 07:21:21 字数 195 浏览 0 评论 0原文

我有一个网站,显示客户希望以 pdf 格式提供的产品信息。我需要一种方法将特定的 HTML 页面动态转换为 PDF,有人知道如何做到这一点吗?我需要将 html 页面转换为 PDF 文档,并即时将其提供给最终用户(有太多产品需要手动执行此操作,并且这些产品定期接收更新,因此手动方法是不可能的)

编辑:我忘了提到我需要这个来使用 vb.net 或 c#.net

I have a website that displays product information that the client wishes to offer as pdf format. I need a way to dynamically convert a particular HTML page into a PDF, does anybody know of a way to do this? I need to convert an html page into a PDF document and serve it to the end user on the fly (there are WAY too many products to do this manually and these products receive updates regularly so a manual approach is out of the question)

EDIT: I forgot to mention that I need this to use either vb.net or c#.net

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

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

发布评论

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

评论(1

风铃鹿 2024-10-05 07:21:21

您尝试过 iTextSharp 吗?

Have you tried iTextSharp?

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