[英]I need to create PDF from user control HTML in ASP.NET webforms ? How do i get html from user control and then convert that HTML to PDF?
The purpose of this is working on ASP.NET webform application.这样做的目的是在 ASP.NET 网络表单应用程序上工作。 My requirement is to get user control rendered html and then convert that html to pdf and attach as a document in database.
我的要求是让用户控制呈现 html,然后将 html 转换为 pdf 并作为文档附加到数据库中。 I have used multiple techniques like getting html from http web request but could not found my desired solution.
我使用了多种技术,例如从 http web 请求获取 html ,但找不到我想要的解决方案。 Any help would be really appreciated.
任何帮助将非常感激。
You could look at the OpenHtmlToPdf你可以看看 OpenHtmlToPdf
https://github.com/vilppu/OpenHtmlToPdf https://github.com/vilppu/OpenHtmlToPdf
I think it will do what you need.我认为它会做你需要的。
You will create the PDF and save it as a blob within your database is my understanding of your requirement.您将创建 PDF 并将其保存为数据库中的 blob,这是我对您的要求的理解。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.