在Windows Phone的Silverlight中阅读pdf

问题描述:

我目前正在为Windows Phone 7编写应用程序.我正在使用开发人员工具7.1.我需要在应用程序中打开一些pdf文件.

i am currently writing application for windows phone 7. i am using developer tools 7.1. i need to open some pdf files in my application.

我该怎么做?是否可以在不离开应用程序的情况下做到这一点?您能提供一些示例代码吗?

how can i do that? is it possible to do that without leaving the application?  can you give some sample codes. thanks for any kind of support.

对于您要以编程方式打开本地PDF文件的特定情况,WP7没有内置的机制.有第三方PDF查看器控件等:

For your specific scenario where you have local PDF files that you wish to open programmatically, there is no built in mechanism for WP7. There are third party PDF viewer controls etc.:

http://www.componentone.com/SuperProducts/StudioWindowsPhone/

http://amyuni.com/en/developer/pdfsilverlight/

http://silverpdf.codeplex.com/

http://www.pdftron.com/pdfnet/index.html

另一种选择是将PDF文件转换为其他格式,例如HTML,然后您可以使用WebBrowser控件进行查看.

Another option is to convert your PDF files to a different format such as HTML which you can then view using the WebBrowser control.

希望这会有所帮助,

标记