PDF-viewer for Silverlight for Windows Phone 7 (SilverDox?)
Is there any PDF-viewer control which can be used in a Silverlight for Windows Phone 7 application?
I've found this thread: Silverlight 4.0 PDF Viewer
and tried PDFTron's SilverDox but I didn't have any luck because my application crashes with the exception:
WindowsPhonePanoramaApplication1.dll!WindowsPhonePanoramaApplication1.App.RootFrame_NavigationFailed(object sender, System.Windows.Navigation.NavigationFailedEventArgs 开发者_运维知识库e) Line 109 + 0x5 bytes C#
..which is quite strange, I think. However, the SilverDox works in a "normal" (non Phone 7) Silverlight application.
Any suggestions?
ComponentOne has a Windows Phone PDF Viewer and it's license-free to use as CTP. There are some performance issues and not the entire spec of PDF is supported (see the documentation) because it parses pdf data into XAML. http://www.componentone.com/SuperProducts/PdfViewerPhone/
Windows Phone 7 runs a much more restricted version of Silverlight, therefore a full-fledged Silverlight 4 library might not work if it uses certain calls or objects that are not supported in the SDK.
I highly doubt that there is a free PDF viewing control right now for Windows Phone 7 - Adobe just released its Reader for WP7, so for now that might be the only way to read PDF documents on the device.
I got an XPS Viewer up and running. For details see this post.
The blog post doesn't mention it, but it actually converts documents to XPS format. The Windows Phone application uses a Silverlight XPS Viewer that I found here.
Adobe Reader is now available on Windows Phone 7 (since october 2010).
However, for another PDF to XPS/Silverlight approach, Amyuni PDF for Silverlight (a commercial product) could help.
精彩评论