使用 ITextSharp 生成 XPS 文档而不是 PDF?

发布于 2024-10-17 23:10:16 字数 79 浏览 9 评论 0原文

我正在使用 ITextSharp 生成 PDF 文件。是否也可以生成 XPS 文件?如果是的话,怎么办?

找不到任何文档。谢谢!

I'm using ITextSharp to generate PDF files. Is it also possible to generate XPS files? And if yes, how?

Can't find any documentation. Thanks!

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

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

发布评论

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

评论(2

完美的未来在梦里 2024-10-24 23:10:16

iTextSharp 是专门为生成 PDF 文件而构建的库,因此不会为您创建 XPS 文件。 System.Windows.Xps 命名空间为您提供了编写 XPS 文档的方法来自 .net 3.5 及更高版本的代码。

iTextSharp is a library specifically built to generate PDF files, so that is not going to create XPS files for you. The System.Windows.Xps namespace provides you with methods for writing XPS documents from your code for .net 3.5 and higher.

冷…雨湿花 2024-10-24 23:10:16

想法:您可以尝试使用 iTextSharp 创建 PDF,然后使用 GhostScript 将其转换为 XPS,然后打印到 XPS 打印机驱动程序?

An Idea: You could try creating the PDF using iTextSharp, then converting it to XPS using GhostScript to print to an XPS printer driver?

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