Show pdf inside silverlight application. PDF to XAML

本秂侑毒 提交于 2019-12-01 04:24:15

问题


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)

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).

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

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

I will be thankfull for any ideas or links.


回答1:


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...

Chris



来源:https://stackoverflow.com/questions/4770952/show-pdf-inside-silverlight-application-pdf-to-xaml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!