1. #41
    Touch Premium Member
    Join Date
    Feb 2011
    Posts
    5
    Vote Rating
    0
    hudibm is on a distinguished road

      0  

    Default i found a solution

    i found a solution


    Quote Originally Posted by hudibm View Post
    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)

  2. #42
    Touch Premium Member
    Join Date
    Feb 2011
    Posts
    5
    Vote Rating
    0
    hudibm is on a distinguished road

      0  

    Default does this work off line?

    does this work off line?


    i cached teh pdf file. but if im off line it wont work. doesnt even get to the spinner.

  3. #43
    Sencha User
    Join Date
    Jan 2012
    Posts
    2
    Vote Rating
    0
    frankie0515 is on a distinguished road

      0  

    Default


    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???

  4. #44
    Sencha User
    Join Date
    Apr 2013
    Posts
    3
    Vote Rating
    0
    javier.ruiz is on a distinguished road

      0  

    Default


    I have the same problem than QMG, I can see the pdf page duplicated and the text very big!

  5. #45
    Sencha User
    Join Date
    Mar 2013
    Posts
    3
    Vote Rating
    0
    jdockins is on a distinguished road

      0  

    Default


    Quote Originally Posted by hudibm View Post
    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.

    Does anyone know what causes the garbled image of the PDF on android?

  6. #46
    Sencha User
    Join Date
    Oct 2012
    Posts
    29
    Vote Rating
    0
    jerrysolomon is on a distinguished road

      0  

    Default


    Hi Sunny,

    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

  7. #47
    marco.marsala
    Guest

    Default


    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?

    Thank you.

    Dr. Marco Marsala
    Network Solution srl
    http://www.realizzazionesitigenova.it

  8. #48
    marco.marsala
    Guest

    Default Solved: how to fix pdf.js in production build

    Solved: how to fix pdf.js in production build


    Simply replace the minified pdf.js in your production build with the pdf.js you're using in test build... this is needed because the minification routine damages the file.

    See my question here on how to disable minification on some files: http://www.sencha.com/forum/showthre...-on-some-files

  9. #49
    Sencha User SunboX's Avatar
    Join Date
    Mar 2010
    Posts
    239
    Vote Rating
    27
    SunboX will become famous soon enough SunboX will become famous soon enough

      0  

    Default


    short notice (haven't much time lately), I updated PDF.js to latest commit and Sencha Touch to 2.2.1

    https://github.com/SunboX/st2_pdf_panel

    greetings André
    Water is coffee with javascript turned off.

  10. #50
    Sencha User
    Join Date
    Dec 2012
    Posts
    32
    Vote Rating
    3
    alanthales is on a distinguished road

      0  

    Default


    Hi!

    This pdf viewer works with data uri scheme? Like this:


film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar