ASP.NET - 中等信任度的 PDF 组件

发布于 2024-08-09 23:29:41 字数 594 浏览 5 评论 0原文

谁能推荐一些在中等信任环境中工作的 ASP.NET 兼容 PDF 组件?我读到 ITextSharp 效果很好,但来自 ABCPdfASPPdf ,用代码编译整个PDF的想法是非常令人畏惧的。理想情况下,我想使用 wkhtmltopdf 之类的东西来简单地将 HTML 页面转换为 PDF(但是当然,这在中等信任度下不起作用)。

就价格而言:免费是最好的,但付费解决方案也不是不可能。

如果我找不到合适的选择,我可能会选择在一台单独的机器上托管一个 Web 服务,我可以在该机器上运行完全可信的应用程序,但这绝对不是最佳选择。

Can anyone recommend some ASP.NET-compatible PDF Components that work in a medium trust environment? I read that ITextSharp works well, but coming from ABCPdf and ASPPdf, the thought of compiling the entire PDF in code is very daunting. Ideally I'd like to use something like wkhtmltopdf to simply convert HTML pages to PDFs (but of course that doesn't work in medium trust).

As far as price is concerned: free is best, but paid solutions are not out of the question.

In the event I cannot find a decent option I may choose to just host a web service on a separate machine that I can run a fully trusted application on, but that is definitely not optimal.

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

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

发布评论

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

评论(3

硪扪都還晓 2024-08-16 23:29:41

iTextSharp 可能是中等信任度下最好的免费选项。开始使用它似乎令人畏惧,但是一旦掌握了它的窍门,它就会非常强大。有一个适用于简单和更复杂的文档布局的教程。

iTextSharp - http://sourceforge.net/projects/itextsharp/

iTextSharp 教程 - http://itextsharp.sourceforge.net/tutorial/index.html

iTextSharp 处于中等信任度 - http://instantdevelopment.blogspot.com/2009/10/ itextsharp-pdf-rendering-in-medium.html

我刚刚完成了类似的生成文档的练习。我研究了 ReportViewer 的设计器界面和 PDFSharp 的更简洁的 API,但目前这两种方法都无法在中等信任环境中工作。 iTextSharp 是我能找到的满足我要求的最佳选择 - 免费且中等信任兼容。

iTextSharp is possibly the best free option that works in medium trust. It can seem daunting to start using it, however once you get the hang of it it is very powerful. There is a tutorial available for both simple and more complex document layouts.

iTextSharp - http://sourceforge.net/projects/itextsharp/

iTextSharp Tutorial - http://itextsharp.sourceforge.net/tutorial/index.html

iTextSharp in medium trust - http://instantdevelopment.blogspot.com/2009/10/itextsharp-pdf-rendering-in-medium.html

I've just been through a similar exercise to generate documents. I looked at ReportViewer for a designer interface and PDFSharp for a cleaner API, but neither will currently work in a medium trust environment. iTextSharp was the best option I could find that met my requirements - free and medium trust compatible.

℡寂寞咖啡 2024-08-16 23:29:41

While not only a PDF library, our Data Dynamics Reports product is already supported in medium trust as noted in this stackoverflow thread. We are working on making ActiveReports work in medium trust very soon - the developers are working on it as we speak (I literally just saw an email discussion about documenting it). For handy reference some links from the other stackoverflow thread:

少钕鈤記 2024-08-16 23:29:41

您可以尝试 winnovative 库:

http://www.winnovative-software.com/

或者CETE 库

http://www.cete.com/Products/DynamicPDFForNET/Generator/ index.csp

我已将两者用于 ASP.NET Web 应用程序中的不同功能

You could try the winnovative library:

http://www.winnovative-software.com/

Or the CETE library

http://www.cete.com/Products/DynamicPDFForNET/Generator/index.csp

I've used both for different features in ASP.NET web applications

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