WPF转PDF [英] WPF to PDF

查看:145
本文介绍了WPF转PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WPF应用程序,我希望能够将应用程序的输出保存到PDF文档中,我要保存的项目可以是可视图形或FixedDocument(我可以将其创建为其中的任何一个选项,并且很容易在它们之间进行转换.

I have a WPF application and I want to be able to save the output of the application to a PDF document, the item I want to save can be a Visual a Drawing or a FixedDocument (I can create it as any of those options, and it's easy to convert between them).

有没有可以直接从WPF转换为PDF的库(无需编写代码即可遍历可视化树并使用PDF原语重新​​创建它).

Is there any library that can convert directly from WPF to PDF (without writing code to walk the visual tree and recreate it using PDF primitives).

推荐答案

如果将WPF可视树渲染到XPS中,请尝试使用此XPS到PDF转换器

If you got your WPF visual tree rendered in to XPS then try this XPS to PDF converter NIXPS.

这篇关于WPF转PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆