-
3 Sep 2012 9:01 AM #11
Works for me. Have tried it using a Galaxy Nexus S with Android 4.0.4 installed:
Foto 03.09.12 18 50 28.jpg
Sry, can´t help you by now.Water is coffee with javascript turned off.
-
3 Sep 2012 11:04 PM #12
I think the problem is that Safari (on iPad) does not cache such files even if you write them to the manifest. I have the same problem with a simple video. It doesn't get cached and therefore cannot be loaded from cache. Because the caching of all files is a key requirement of my project I just cannot go with Sencha here. Anyways. Thank you very much for your effort and all the best!
-
4 Sep 2012 1:10 AM #13
Doesn't work with PhoneGaped application
Doesn't work with PhoneGaped application
Thank you for that work, I was looking for the plugin since a while !
However, when built for iPhone / iPad with PhoneGap (Cordova), there is an error, the log begin with :
Everything is loaded except the pdf, so no text is displayed, just 14 whites pages (with the your pdf link).Code:AppDelegate::shouldStartLoadWithRequest: Received Unhandled URL
An idea to make it working ? :-(
-
4 Sep 2012 1:36 AM #14
Hm seems like Cordova can't handl the URL. I have to look into it. But this will take some time. Btw. rendering a PDF on Canvas on Android and iOS isn't rally performant.
And it looks blurry. This PDF Panel shouldn't be used for production by now. It was a test, but doesn't work very well. Maybe we can try again in a year or so, as devices get more performant.Water is coffee with javascript turned off.
-
4 Sep 2012 1:42 AM #15
We need to handle this kind of panel in our application, you plugin does the stuff so, even if it's blurry, it's pretty perfect. Of course, whithout working in Cordova, it's less useful for us.
I didn't found a good alternative yet
-
4 Sep 2012 1:51 AM #16
Ok, I should get it working in Cordova. But don't have time to look at it this week. Maybe next WE.
A alternative could be using an iFrame container. Maybe porting Ext 4 "Managed iFrame" extension to ST2.Water is coffee with javascript turned off.
-
4 Sep 2012 3:52 AM #17
Hehe, thank you if you find a way to make it working with PhoneGap :-)
About the iFrame method, I've tried some months ago, but I had trouble to make things zoomable, scalable, etc. I will take a look at Managed iFrame, even if I'm not a ST expert, and don't know much more things about Ext JS.
-
5 Sep 2012 9:05 AM #18
A small update on PhoneGap/Cordova Support
The bundled PDF get´s loaded by now, but it seems to get messed up by converting the DataURL (base64 encoded) to an ByteArray (data stream). I have to investigate a bit more ...
https://github.com/SunboX/st2_pdf_pa...onegap-support
greetings SunnyWater is coffee with javascript turned off.
-
5 Sep 2012 12:08 PM #19
Seems like PhoneGap/Cordova can´t handle "data" URL´s.
These are required by Mozilla´s PDF.JS to render a PDF page (injecting fonts into canvas).
Does anyone know a work around?
https://github.com/SunboX/st2_pdf_panel/issues/1
Same issue described here:
https://groups.google.com/forum/?fro...ap/EqjMcmO1Ez4
and here:
http://pastebin.com/XXUYvJQXWater is coffee with javascript turned off.
-
5 Sep 2012 12:58 PM #20
This Test Case will fail in PhoneGap/Cordova:
Code:<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <script> var src = '<!DOCTYPE HTML><html><head><meta charset="utf-8">'; src += '</head><body>'; src += '</body></html>'; var frame = document.createElement('iframe'); frame.src = 'data:text/html,' + src; frame.setAttribute('style', 'visibility: hidden;' + 'width: 10px; height: 10px;' + 'position: absolute; top: 0px; left: 0px;'); document.body.appendChild(frame); </script> </head> <body> </body> </html>
Water is coffee with javascript turned off.



Reply With Quote