HTML DOC PDF XPS 什么格式的文档更合适?

发布于 2024-07-29 22:52:38 字数 109 浏览 4 评论 0原文

我要将文档从 ASP.NET 网站保存到服务器磁盘。 我可以简单地将其另存为 html,但其他文档格式可能更合适。 如果是这样,如何将其另存为 DOC PDF 或其他(在 ASP.NET c# 中)?

I'm going to save documents from an ASP.NET web site to server disk.
I can simply save it as html, but probably other document formats wiдl be more appropriate.
If so, how save it as DOC PDF or other (in ASP.NET c#)?

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

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

发布评论

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

评论(2

怕倦 2024-08-05 22:52:38

如果您需要精确的渲染,您可以忘记 HTML。 如果没有,这是一个不错的选择。

Word 二进制格式 (97-2003) 目前正在缓慢被淘汰,所以我也会忘记它(为了能够在 15 年后打开你的文档)。 另外,它是一种专有格式,这意味着您必须依赖供应商支持才能读/写文档。

如果您需要精确渲染,那么您有两种选择:PDF 和 XPS。

XPS 是 Microsoft 支持的一种相当新的格式。 不幸的是,目前其背后的支持有点低。 但由于它是一种开放格式,它可能会获得动力。

另一方面,PDF 是一种众所周知的格式,已经支持了很多年。 如果您想保留文档的精确渲染,并且仍然(无论如何)能够在几年内打开它,我认为这将是您最好的选择,但 XPS 仍然是一个不错的选择。

If you require precise rendering, you can forget about HTML. If not, it is a great choice.

Word Binary Format (97-2003) is currently slowing being phased out, so I would forget about it too (for sake of being able to open your documents in 15 years). Plus, it is a proprietary format, which means you are locked in to vendor support to read/write your document.

Which leaves you with two choices if you require precise rendering: PDF and XPS.

XPS is a fairly new format backed by Microsoft. Unfortunately, support behind it is kinda low at the moment. But it will probably gain momentum due to the fact that it is an open format.

PDF on the other hand is a well known format that has been backed for a lot of years. If you want to keep a precise render of a document and still (by any chance) be able to open it in a few years, I think it would be your best bet, but XPS is still a great choice.

苏辞 2024-08-05 22:52:38

您可以使用多种打印到 PDF 实用程序中的任何一种将其另存为 PDF。 CutePDF Writer 就是其中之一。 它作为打印机驱动程序安装,因此您可以从任何应用程序打印 PDF。

如果您要从 Web 服务器动态创建文档,您将需要其他工具,例如 PDFSharp。

http://www.pdfsharp.com/

You can save it as as PDF by using any of a number of print to PDF utilities. CutePDF Writer is one example of those. It installs as a printer driver, so you can print PDFs from any application.

If you are going to create documents on the fly from the web server, you will need something else like PDFSharp.

http://www.pdfsharp.com/

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