All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer or sponsors.Twitter : @deltakosh
Following my previous article on “Reading PDF and XPS on your Windows 8 application using WinRT”, I would like to share with you the same example but with Javascript code.
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
As you may know, you can easily develop native applications for Windows 8 using JavaScript and WinJS.
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:
After creating a GIF file using my previous article, I propose you to use the power of WinRT to create a component in order to produce video file from your drawings (using for instance a canvas with Javascript).
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.
And as I said before, Media Foundation is based on COM components. But thanks to C++ projects for Windows Store, we can create a WinRT component on top of Media Foundation in order to use it from our Javascript or .NET projects.