如何在WPF中的Canvas中显示PDF文件 [英] How to Display PDF file in Canvas In WPF

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

问题描述

朋友们,
我是WPF的csharp Dotnet开发人员.请帮助我编写代码以在画布中显示pdf文件.

Hi friends,
I am a csharp Dotnet Developer working in WPF.Please help me to write code to display pdf file in canvas.

推荐答案

这可以帮助您继续操作-http://hugeonion.com/2009/04/06/displaying-a -pdf-file-within-a-wpf-application/.
[
This could help you proceed - http://hugeonion.com/2009/04/06/displaying-a-pdf-file-within-a-wpf-application/.
This[^] might help as well.


有几种不同的方法.您可以通过这种方式找到许多此类文件: http://bit.ly/xqXgeU [ http://msdn.microsoft.com/en-us/library/system. windows.controls.webbrowser.aspx [ ^ ].

—SA
There are several different approaches. You can find many of them in this way: http://bit.ly/xqXgeU[^].

(It really gives you good results.)

Please, don''t miss such a simple approach as embedding WebBrowser control in your application and opening PDF simply using System.Windows.Controls.WebBrowser.Navigate:

http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser.aspx[^].

—SA


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

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