在Silverlight应用程序中显示pdf. PDF转换为XAML [英] Show pdf inside silverlight application. PDF to XAML

查看:90
本文介绍了在Silverlight应用程序中显示pdf. PDF转换为XAML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建Silverlight应用程序,客户将在其中看到一些pdf文件. PDF文件必须在Silverlight控件中,并且不能呈现为图像(客户希望选择文本)

I need to create silverlight application where customer will see some pdf files. PDF files have to be inside silverlight control and not rendered as images (customer wants to select text)

为此,我需要一些免费库或代码,以将pdf文件转换为xaml(或者只是打开pdf,以便我可以将其转换为xaml).

For this purposes i need some free libriaries or code to convert pdf file to xaml (or just open pdf so i can convert it to xaml).

哪个图书馆可以阅读pdf并帮助我将数据转换为xaml? 我可以阅读pdf文件并编写自定义转换工具吗?

Which library can read pdf and help me to convert data to xaml? Can I read somehow pdf file and write custom convertation tool?

我看到了iTextSharp.该图书馆可以阅读pdf并帮助解决我的问题吗?

I saw iTextSharp. Is this library can read pdf and help me with my issue?

对于任何想法或链接,我将深表感谢.

I will be thankfull for any ideas or links.

推荐答案

我利用Acrobat Reader插件为我进行显示.确实需要不同的方法,具体取决于您的应用程序是在浏览器内部还是外部运行(我会检查应用程序是否在浏览器内部运行,并相应地更改显示方式).如果在浏览器中运行,我将使用IFrame覆盖应用程序,如本文所述:我的书,可从Apress网站上下载:"> http://www.apress .com/9781430272076/.

I make use of the Acrobat Reader plugin to do the displaying for me. It does require a different method depending on whether your application is running inside or outside the browser (I check if the application is running inside the browser and change the means of display accordingly). If running inside the browser, I overlay the application with an IFrame, as I describe in this article: http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-6.aspx. Otherwise, I use the WebBrowser control. I have a control which does this all for you in the source code that accompanies my book, which is downloadable from the Apress website here: http://www.apress.com/9781430272076/.

希望这对您有帮助...

Hope this helps...

克里斯

这篇关于在Silverlight应用程序中显示pdf. PDF转换为XAML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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