Android - StageWebView - Loading PDF Bug - AIR 3.9
I think I've discovered another bug in AIR 3.9. Tested on Galaxy S4, and Nexus 7
When using the StageWebView on Android, PDFs will not load correctly. This works correctly on iOS and Desktop.
a Event.Complete event is dispatched, but all you ever see is a white square with Zoom buttons on the bottom right.
Has anyone else ever experienced this?
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
applicationComplete="init()"
xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="160">
<fx:Script>
<![CDATA[
import spark.components.Application;
public function init():void{
this.stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.align = StageAlign.TOP_LEFT;
var webView:StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle(50,50,this.stage.stageWidth-100, this.stage.stageHeight-100);
webView.addEventListener(Event.COMPLETE, this._onLoadComplete);
webView.loadURL("http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air4-0_flashplayer12-0_release notes.pdf");
private function _onLoadComplete($event:Event):void{
trace("COMPLETE");
]]>
</fx:Script>
</s:Application>
I have also this problem on GalaxyTab2 10.1, Android 4.0.3, Air 3.9.0.121
Complied with Air3.9, Asc 2.0.0.354071
webView = new StageWebView(true);
webView.stage = this.stage;
webView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
webView.addEventListener(LocationChangeEvent.LOCATION_CHANGE, _onLocationChange);
// webView.loadURL(new File(new File("app:/pdf/arbo.pdf").nativePath).url);
webView.loadURL("http://www.spacex.com/sites/spacex/files/hyperloop_alpha-20130812.pdf");
// webView.loadURL("http://www.google.com");
11-16 14:31:19.979: I/dalvikvm(23528): Could not find method android.webkit.WebSettings.setAllowUniversalAccessFromFileURLs, referenced from method com.adobe.air.AndroidWebView.11-16 14:31:19.979: W/dalvikvm(23528): VFY: unable to resolve virtual method 635: Landroid/webkit/WebSettings;.setAllowUniversalAccessFromFileURLs (Z)V
11-16 14:31:19.979: D/dalvikvm(23528): VFY: replacing opcode 0x6e at 0x003a
11-16 14:31:20.002: I/webclipboard(23528): clipservice: android.sec.clipboard.ClipboardExManager@418a32f8
11-16 14:31:20.033: D/FirewallPolicy(227): getURLFilterEnabled(true)
11-16 14:31:20.041: D/FirewallPolicy(227): isUrlBlocked - Policy disabled
11-16 14:31:20.041: I/ClipboardServiceEx(227): dismissUIDataDialog. service check
11-16 14:31:20.049: D/WML_SISO(23528): InitPasteboardJni
11-16 14:31:20.119: W/webcore(23528): java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.
11-16 14:31:20.119: W/webcore(23528): at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:2475)
11-16 14:31:20.119: W/webcore(23528): at android.webkit.WebViewCore$EventHub.access$12600(WebViewCore.java:1217)
11-16 14:31:20.119: W/webcore(23528): at android.webkit.WebViewCore.removeMessages(WebViewCore.java:2587)
11-16 14:31:20.119: W/webcore(23528): at android.webkit.WebView.sendOurVisibleRect(WebView.java:3410)
11-16 14:31:20.119: W/webcore(23528): at android.webkit.ZoomManager.setZoomScale(ZoomManager.java:958)
11-16 14:31:20.119: W/webcore(23528): at android.webkit.ZoomManager.access$2100(ZoomManager.java:57)
11-16 14:31:20.119: W/webcore(23528): at android.webkit.ZoomManager$PostScale.run(ZoomManager.java:1428)
11-16 14:31:20.119: W/webcore(23528): at android.os.Handler.handleCallback(Handler.java:605)
11-16 14:31:20.119: W/webcore(23528): at android.os.Handler.dispatchMessage(Handler.java:92)
11-16 14:31:20.119: W/webcore(23528): at android.os.Looper.loop(Looper.java:137)
11-16 14:31:20.119: W/webcore(23528): at android.app.ActivityThread.main(ActivityThread.java:4514)
11-16 14:31:20.119: W/webcore(23528): at java.lang.reflect.Method.invokeNative(Native Method)
11-16 14:31:20.119: W/webcore(23528): at java.lang.reflect.Method.invoke(Method.java:511)
11-16 14:31:20.119: W/webcore(23528): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
11-16 14:31:20.119: W/webcore(23528): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
11-16 14:31:20.119: W/webcore(23528): at dalvik.system.NativeStart.main(Native Method)
11-16 14:31:20.190: D/FirewallPolicy(227): getURLFilterEnabled(true)
11-16 14:31:20.190: D/FirewallPolicy(227): isUrlBlocked - Policy disabled
Similar Messages
-
Air for Android - Embed a pdf in Air Mobile app
Hi at all,
i would like to embed a pdf directly in a View Component and use the Adobe Reader features like zoom, navigation page etc.
Any suggest?
Thanks.
F.You can call native code from AS3 by writing an AIR Native Extension (ANE):
http://www.adobe.com/devnet/air/native-extensions-for-air.html
BTW: Flash already contains quite a few image processing filters and image compositioning algorithms. They may be suitable, depending on your needs. -
How to load pdf in flex application for android os
I loaded pdf in stagewebview which works good in IOS but not in android.
The pdf file is loaded from the application storage directory.
Please help me in resolving the problem. Thank you in advance.I think that my problem was i couldnt see pdf in my app running in ipad simulator of FlashBuilder in a flex mobile project in my laptop. what i read said that StageWebView create an instance of default browser in your machine. So that if we cant see pdf in ipad simulator is because also you cant see it in the default browser.
Apart of this, i run this example in other machine, and i could see it, so its not problem of your code, but from your browser probably doesnt have pdf plugin installed. Correct me if i´m wrong.
Cheers! -
Loading pdf file in flex application (not in AIR)
Hi,
Could any one suggest opening pdf file within flex application with blazeds.
we have used the following code to open pdf file in the same window
navigateToURL( new URLRequest( "http://localhost:8080/PdfSample/jsp/PdfContent.jsp" ),"_self");
But we want to load the pdf file in a vbox.Similary to the below image
Is it is possible to load pdf file in flex application,if so how can we achieve itHello Mariush,
I have to display the content of the PDF in the flex application. If not PDF directly, is there other workaround for this. Or can I display the content of the MS word file, if not PDF.
Thanks and Regards
Khalid Chaudhary -
Opening pdf in AIR HTML browser developed using Flex
Hi,
I am trying to open a PDF in AIR Browser. The Air browser supports this only if i have installed the Acrobat reader 8.1 and above, for versions lower than 8.1 it is not supporting and not opening the PDF file. In another scenerio I have installed both Acrobat reader 9 and Acrobat proffessional 7 but the Air browser fails to open the PDF because it comparing the version against proffesssional instead reader. Actually the pdf should open in AIR browser since I have installed Acrobat Reader 9. Please suggest how to overcome this issue.I'm not sure I quite follow your original question. If you are asking if you load a local html file or set the htmltext of a HTML control in Adobe AIR and want to use @font-face, then I defer to Joe's answer.
But, if you set the location to a page on a web server and you have Adobe Air 1.5 installed, then @font-face does work. I tested this on two pages. One is http://www.taptaptap.com/ and the font Fertigo (which I don't have installed on my machine) showed up. I also tested it on http://www.zeldman.com/dwws/ which has fallback support for IE 4 and up. Some things to remember, IE does not support the format attribute in @font-face. And IE only supports .eot file format. However, as Joe mentioned, using local to see if the font is installed on the users machine to prevent blank space from showing, is not supported. Please refer to the list of unsupported web-kit features Joe mentions in another post.
Message was edited by: durbonix -
Since I have Os X Maverick I can't load pdf from the web !
Hi everybody !
Like the title says, since I have Os X Maverick I can't load pdf from the web. When I click on a link to download a pdf, a new window open and the document seems to load but the winow stays dark. Sometime, when I then dowload the document on my computer it works but not all the time ! What's the bug !?
Thanks a lot for helping me !!!I found this discussion : https://discussions.apple.com/thread/3874025
-
PDF in AIR - read PDF scroll position? No events.
I'd like to capture scroll events when viewing a PDF file, and I can't figure out how to do it (or if it can be done).
I have a pretty simple AIR application, where I'm trying to render PDF content in AIR. This includes:
<mx:HTML id="myHTML" height="600" width="{this.width-40}" location="http://www.google.com" />
myHTML.addEventListener(Event.SCROLL, imageScrolled);
myHTML.addEventListener(Event.COMPLETE, complete);
myHTML.addEventListener(Event.HTML_RENDER, htmlRender);
myHTML.addEventListener(Event.LOCATION_CHANGE, locationChange);
These events all trigger just fine when normal web pages are loaded. As soon as a PDF URL is displayed, there are no events, when scrolling the PDF.
Has anyone found a workaround for receiving these events? I suppose I could look into scripting within the PDF file (would this work?), but I was trying to handle generic PDF files.But if you want to interact and control a PDF from AIR you can make it using JS.
http://www.adobe.com/devnet/acrobat/javascript.html -
Coldfusion 11 cfheader or cfcontent 'failed to load PDF document'
I have a website that worked fine with Coldfusion 10 and now I have updated to Coldfusion 11 and this code doesn't work:
<cfheader name="content-disposition" value="inline; filename=#vPublicFile#" />
<cfcontent type="application/pdf" file="#DownloadFolder##qryDownload.fileNameOnserver#" deleteFile="no" />
If I type in the URL directly to the PDF file it loads fine, but if I try to get it through this code then I get the message "failed to load PDF document". Even if I change the code to allow me to save the file, I get a saved file but it won't open in acrobat.
I know the code is working code, I tried it with Coldfusion 10 again just to make sure. Something about 11 is stopping it from working. Any ideas?I think that this is a iis web connector issue.
One of the worst cf update bugs I have ran into.
I have a lot of binary data served up with cfcontent, I never include "index.cfm," and almost always have query string params.
<cfheader name="Content-Length" value="#variables.FileSizeBytes#" />
<cfheader name="Content-Disposition" value="inline;filename=#variables.FileName#" /> (inline vs attachment makes no difference)
<cfcontent type="application/pdf" file="#variables.File#" />
/test/ - works
/test/index.cfm - works
/test/index.cfm?getPDF=1 - works
/test/?getPDF=1 - fails
Connection:close response header value there everytime it fails:
Connection:close
Content-Disposition:inline;filename=abcd.pdf
Content-Length:31739
Content-Type:application/pdf;charset=UTF-8
Date:Wed, 12 Nov 2014 20:59:55 GMT
Server:Microsoft-IIS/7.5
Response headers when it works:
Content-Disposition:inline;filename=abcd.pdf
Content-Length:31739
Content-Type:application/pdf;charset=UTF-8
Date:Wed, 12 Nov 2014 20:55:53 GMT
Server:Microsoft-IIS/7.5 -
Recently my adobe is taking much longer to load PDF files that used to open immediately
recently my adobe is taking much longer to load PDF files that used to load almost instantly
Look at this comprehensive trouble shooting document;
https://discussions.apple.com/docs/DOC-3353
I suggest that you start with SMC and PRAM resets.
Then a Safe Boot.
Ciao. -
Unable to load pdf documents on internet after downloading adobe reader XI
Hi,
I have just downloaded adobe reader XI. However when I try to load pdf documents off the internet there is an error message that says there is a problem with adobe reader with error 507:507. I am running on windows 7. Does anyone know how to fix this problem?
thanks & regards,
Selinmy os is 32-bit windows 7 version 6.1 , i am using internet explorer 9. It works fine when i download it to my disk and open it from there.
The problem suddenly happened for Adobe Reader X previously which I then uninstalled and installed Adobe Reader XI, but it didnt seem to solve the problem. -
How to Pop-up new Window and load PDF at same time
Hi
In my servlet application, when I receive request, I have to load PDF form and at same time I have to pop up new browser window with html content ( help data).
I thought of writing <script>window.open(....)</script> to outputstream before writing FDFdocument , but it fails.
I am using FDF tool kit to load PDF forms, once I set content type to "application/vnd.fdf" , I can't write any javascript to response.
Any help /ideas to do this is appreciated.
Thanks,
PrakashHi Prakash,
Here is the way to solve this issue:
Make use of HTML frame, one frame (maybe with 0 height and width) pop up with a new HTML browser using javascript. Set the content type and display the pdf in another frame.
Note that one page can only set content type once, so if u have set it to application/vnd.fdf, you cannot write HTML content into same response stream.
-ms -
How can you enable back the Android native Menu button in AIR 2.7?
I've noticed in AIR 2.7 for Android, that now the bottom icons in Android 3.0 Honeycomb are hidden (replaced by small dots) in AIR 2.7, whereas in AIR 2.6 they were always visible. That's cool. Since the bottom bar can never be hidden in Android 3, at least now those icons are less visible (unless you intentionally touch the bottom bar, then the icons show up for a few seconds).
BUT I also noticed in AIR 2.7 compiled apps, the native "Menu" icon is not visible anymore, even after touching the bottom bar. In AIR 2.6 you could see and press that button (which can be captured from AIR so you can show a custom settings menu or whatever).
So, quoting the subject --> How can you enable back the Android native Menu button in AIR 2.7?There is a work around and a reason for the menu issue. Honeycomb doesn't natively support a menu softkey, it is only to support old apps comiled in phone API levels. If you compile a Honeycomb app in 2.7 or 3.0, it is expected you manage the settings within the larger tablet UI framework. See below link for more info and work around.
http://forums.adobe.com/message/3964792#3964792 -
ERROR: Module load completed but symbols could not be loaded for Adobe AIR.dll
Does anyone know what causes this error? The application installed on my machine is using Adobe Air.dll version 2.0.3.13070
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(2b84.2908): Application hang - code cfffffff (first/second chance not available)
eax=00000000 ebx=05105dbc ecx=0c013503 edx=00002b84 esi=77f15b70 edi=00000002
eip=00a68972 esp=0012e03c ebp=00000000 iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00040246
Unable to load image c:\Program Files\Common Files\Adobe AIR\Versions\1.0\Adobe AIR.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for Adobe AIR.dll
*** ERROR: Module load completed but symbols could not be loaded for Adobe AIR.dll
Adobe_AIR+0x58972:
00a68972 8bec mov ebp,espHi,
Check weather its right path or not.Even check the call interface,weather you are giving the right one or not.
Regards,
Srikanth -
Acrobat Plug-In - Wont load PDF pages in browser
Not sure when it started happening, however either after upgrading to Safari 4.0.2 or installing the entire Master Collection of CS4, Safari will no longer load PDF's into a window. The error message reads:
Acrobat Plug-IN
The Adobe Acrobat/Reader that is running can not be used to view PDF files in a web browser. Please exit Adobe Acrobat/Reader and exit your web browser & try again.
My Acrobat Plug In section is as follows:
Adobe Acrobat
Adobe PDF Plug-In For Firefox and Netscape — from file “nppdf32.dll”.
MIME Type Description Extensions
application/vnd.adobe.x-mars Acrobat Portable XML Document Format mars
application/vnd.adobe.xdp+xml Acrobat XML Data Package xdp
application/vnd.adobe.xfd+xml Adobe FormFlow99 Data File xfd
application/pdf Acrobat Portable Document Format pdf
application/vnd.adobe.xfdf XML Version of Acrobat Forms Data Format xfdf
application/vnd.fdf Acrobat Forms Data Format fdf
Can someone help me out. Am trying to cross debug a website for IE8 and Safari but any PDF content in the webpage that loads separately causes the application to quite with a Data Execution Protection error.Thanks for your help I found the SIMBL directory and deleted a file called AcidSearch.Bundle which had a date of 2006, The SIMBL directory was not deleted just the file .
Safari now loads error free ! The path for anyone else with the issue is below.
Application Support>Library>SIMBL>Plugins AcidSearch.bundle -
DW MX trouble with loading PDF files
I'm using Dreamweaver MX on an XP Pro machine and have
trouble loading pdf documents to my web pages. It cooperates
intermittently. I'm using a virtual pdf printer to convert word
documents to pdf, then saving them to my website folder, selecting
the linking text on my page in DW, using the link box to select my
pdf document, then saving the page and putting files in both the
local and remote views.
This method has worked for me before, and now it's not. Does
anyone know of a reason for this? The documents are saved
correctly, as I can get them to open as pdf outside of dreamweaver
and my webpage...when I click on the link I created online I get
"page not found."
Thanks for any help!I am having the same trouble with Dreamweaver MX 2004 on
Mac-OSX since I switched from MacOs9. I still have no solution .
When I want to export a .pdf file I get a message saying <ftp
error>.
I never had problems on Mac Os 9 and it started when using
the first version of Mac Os X. I am presently using mac Os 10.4.10
and I am still unable to transfer .pdf files, no matter whether I
use acrobat or the Mac system to produce the.pdf file.
When I try the page on my computer the link to the.pdf file
functions allright, but not on the server as the file cannot be
transfered to it by the software.
Does someone know how to solve this ?
Q]
Originally posted by:
milflib
I'm using Dreamweaver MX on an XP Pro machine and have
trouble loading pdf documents to my web pages. It cooperates
intermittently. I'm using a virtual pdf printer to convert word
documents to pdf, then saving them to my website folder, selecting
the linking text on my page in DW, using the link box to select my
pdf document, then saving the page and putting files in both the
local and remote views.
This method has worked for me before, and now it's not. Does
anyone know of a reason for this? The documents are saved
correctly, as I can get them to open as pdf outside of dreamweaver
and my webpage...when I click on the link I created online I get
"page not found."
Thanks for any help!
Maybe you are looking for
-
My iphone 4s fell from the bed and the front screen glass got cracked but the touch screen is working fine, so can i replace just that screen glass?? If not what am i to do ? And how much it might cost me for that repairing??
-
Aperture-sorted event and album images out of order
I am syncing events and albums from Aperture to my iPad through iTunes. In iOS iPhoto the images within these events and albums have a seemingly random sort order, rendering the application useless to me. The sort order is fine in the iOS Photos appl
-
EXPDP Error on 10.2.0.4
Hello, Oracle DB 10.2.0.4 Windows 2003R2 I am getting below error: C:\WINDOWS>expdp system/******* full=y estimate_only=y Export: Release 10.2.0.4.0 - 64bit Production on Thursday, 21 February, 2013 0:2 4:27 Copyright (c) 2003, 2007, Oracle. All rig
-
Option to disable UltraNav (touchpad + trackpoint) when external mouse is connected
I grabbed the 5/2011 drivers for UltraNav from the Lenovo site and it appears that an option 'to disable the integrated pointing devices when an external pointing device is present' does not exist, or at the very least I can't easily find it. Please
-
Hi friends We are calling Individual Object and other PCUI Screen in ICWC using Transaction Launcher. The requirement is to hide or disable some of the buttons like New,Favorites,Goto can any one let me know how to do this. Waiting for you help Regar