i found a solution

Originally Posted by hudibm

i see it works in the browser locally but once i build production (cmd >> sencha app build production)
and upload it to my server it does not work. same issue like was mentioend above by 'morphew'
but im not using a local file im using the pdf example you give (http://cdn.mozilla.net/pdfjs/tracemonkey.pdf).

when you build production using the sencha tools it does something to the file(processes/minifies) so i guess taht messes up something. once i remove the pdf.js path out of the SDK folder and out of the app.Json file and add it to the project after production it works great(dont for get to give the html file the correct path to pdf.js)

sorry,i'm try to package into android or iphone
but afrer i build app ,the pdf canvas just not working.
android will show an div (Hi Hi Hi),iphone just loading or crash
i try include the pdf.js outside the app.json ,but not work either
is this component can't build native app???

when you build production using the sencha tools it does something to the file(processes/minifies) so i guess taht messes up something. once i remove the pdf.js path out of the SDK folder and out of the app.Json file and add it to the project after production it works great(dont for get to give the html file the correct path to pdf.js)

Thanks for this! I added the pdf.js path manually after production build and it finally works.

However, when I build through phonegap and deploy to Android, some of the pdfs are garbled like previously posted. But, it works great in iOS - both iPhone and iPad.

Can you give me a quick update on the status of the pdf panel? As far as I can tell, it's still the only real solution for ST2. I have it working suitably in browsers, but it seems to hang when packaged in a native app (I've seen someone else post this problem in the forum). Are there plans to continue development on the panel? Thanks so much for sharing your efforts!
Jerry

Hi. The demo is not working on IE10 because is using an old pdf.js version.

I’ve fixed by using the newest version of pdf.js (I cloned latest version from git repository then built with “node make generic” as explained in pdfjs site).

Still two issues with this component:

a) on IE10 you cannot scroll the PDF

b) using sencha app build the minification routine damages the pdf.js file. You can fix by manually overwriting, after every build (tedious!), the minified pdf.js with the unminified one from that you've built.

There is any app.json option to tell Sencha Cmd to not minify some .js files?