且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从出口到HTML PDF(C#)

更新时间:2023-11-29 21:44:46

我会选择在服务器上创建一个PDF文件。有迹象表明,这么多的产品​​,但你应该研究效果***你的情况考虑下列之一:

I would opt for creating a PDF file on the server. There are many products that do so but you should research the one that works best in your case considering the following:


  • 要创建PDF所需的计算机资源。如果它是一个复杂的文档可能耗时太久,或减慢其他用户的响应。

  • 并发用户的数量,这将需要相同功能

  • 成本(有免费的解决方案,以及重量级的商业产品)。

我不会依赖Word格式为PDF格式会给你一些更多的保证,这将是在未来的可读性。

I would not rely on Word format for that as PDF will give you some more guarantee that it will be readable in the future.

此外,嵌入硬的选项链接到的图像似乎不是一个好主意给我。如果什么用户想打开该文档,服务器无法访问?

Also, the option of embedding hard links to the images don't seem a good idea to me. What if the user wants to open the document and the server is not accessible?