All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer or sponsors.Twitter : @deltakosh
PDF and XPS file formats are widely used across the world and you could need one day to display them inside your application.
Today I would like to share with you a simple way to do so by using an open source solution: MuPDF (a multiplatform lightweight PDF and XPS viewer).
MuPDF is already working on a WinRT solution you can grab on this GIT repo: http://git.ghostscript.com/?p=user/mvrhel/mupdf.git;a=summary I also used the work of Libreliodev and especially their advanced port of MuPDF for WinRT.
MuPDF is already working on a WinRT solution you can grab on this GIT repo: http://git.ghostscript.com/?p=user/mvrhel/mupdf.git;a=summary
I also used the work of Libreliodev and especially their advanced port of MuPDF for WinRT.
The result is a simple but really useful Windows 8 Modern UI app that is able to display a PDF/XPS file: http://www.catuhe.com/msdn/pdfreader.zip
Among a lot of other things, WinJS allows you to create custom control in order to factorize your UI.
Today, I would like to show you how to create this kind of control and to do so, please let me introduce you with the final version of the control:
To do so, we will use Media Foundation COM components. Media Foundation is the next generation multimedia platform for Windows that enables developers, consumers, and content providers to embrace the new wave of premium content with enhanced robustness, unparalleled quality, and seamless interoperability.