A PDF Viewer Panel for the Sencha Touch 2 Framework - No Browser Plugin required, pure JavaScript.
It renders one page at once because of rendering speed. The page scale can be changed by using multitouch gestures like the Zoom-Gesture or Pinch-To-Zoom.
PDF Rendering is done using the great Mozilla PDF.js Library (https://github.com/mozilla/pdf.js).

By now the rendering speed isn´t very good. Take care by changing the maxPageScale config! I hope this is getting better with future development of mozilla´s PDF.JS.
The rendered page looks a bit blurry. This can be fixed by applying a sharpening filter on the rendered canvas. But this will cost some more cpu time, because we cant use WebGL by now.

First of all thanks for this great work. It is an awesome feature and important extensions. Unfortunately I have a problem using this in production build. It works perfectly in a testing build and in the development environment. Unfortunately I need the offline feature so production mode is a must have.

But I have to extend Ext.ux.panel.PDF first, so you can pass the raw data ("setData()") instead of an URL ("setSrc()").

Will tell you, if I get it working.

3 Sep 2012, 2:25 AM

kmayank

plugin doesn't seem to working on mobile device

plugin doesn't seem to working on mobile device, can you please look into this

thanks

3 Sep 2012, 4:12 AM

SunboX

Which device? Browser based App or hybrid/native? If hybrid, build with PhoneGap/Cordova or with Sencha Touch Packager?

greetings Sunny

3 Sep 2012, 4:23 AM

kmayank

hybrid, build with PhoneGap/Cordova

hybrid, build with PhoneGap/Cordova on galaxy S

thanks

3 Sep 2012, 4:27 AM

SunboX

Are you loading the PDF from local file system (packed together with the App). If so, I´m working on this. The PDF Viewer Panel can only load PDF files from a Web-Server by now. Loading from local filesystem isn´t possible. I hope I can get his fixed soon.

greetings Sunny

3 Sep 2012, 4:36 AM

kmayank

tried it both ways

Hi,

I have tried it both ways nothing works and if you open the example in mobile browser the pdf doesn't load, it displays loader endlessly.