Show pdf inside silverlight application. PDF for XAML

I need to create a silverlight application where the client will see some PDF files. PDF files must be inside the silverlight control and not be displayed as images (the client wants to select text)

To do this, I need some free lyrics or code to convert a pdf file to xaml (or just open a pdf so that I can convert it to xaml).

Which library can read pdf and help convert data to xaml? Can I somehow read the pdf file and write my own conversion tool?

I saw iTextSharp. Can this library read pdf and help me with my problem?

I will be grateful for any ideas or links.

+4
source share
1 answer

I use the Acrobat Reader plugin to display for me. This requires a different method, depending on whether your application is running inside or outside the browser (I check if the application is running in the browser and changes the display means accordingly). If you work inside the browser, I overlay the application on the 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 that does all this for you in the source code that accompanies my book , which can be downloaded from the Apress website here: http://www.apress.com/9781430272076/ .

Hope this helps ...

Chris

+3
source

Source: https://habr.com/ru/post/1336633/


All Articles