Note that there are some explanatory texts on larger screens.

plurals
  1. POError trying to open PDF in AIR Flex application
    primarykey
    data
    text
    <p>We are having a problem with one user of our AIR Flex application trying to open a PDF within it.</p> <p>The application has a content view panel - within here we show PDF / Flash content. We have maybe a dozen users testing it out, and one user cannot view the PDF content - he gets the following error: "There was an error opening this document. This file cannot be found." He is using Reader x (10.1.1). We put in some debuging to write out the location of the PDF file just before the application tries to open it. The location appears to be fine - if I copy that out and put the address into the taskbar on his machine (we're all using Windows 7), the PDF opens fine. We've also tried copy the local storage folder for the AIR app from his machine, the application works fine on my machine (as in it can open the PDF. There doesn't appear to be a problem with the location of the PDF, or standalone Reader opening the file, only from within our AIR Flex app (for this one user).</p> <p>I'm a little stumped. Any ideas?</p> <p>To summarise - his machine open the PDF from the location fine, but the application gets an error saying the file is not found when trying to open from that location. Only one user is experiencing this issue.</p> <p>Edit: We created a small standalone test application, which just shows a PDF. Same error - only for this one User - <a href="http://dl.dropbox.com/u/45777038/pdfWebkitTest.air" rel="nofollow noreferrer">here's a link to download</a></p> <p>Here's the code: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="1004" height="510" backgroundColor="#000000" creationComplete="windowedapplication1_creationCompleteHandler(event)"&gt; &lt;fx:Script&gt; &lt;![CDATA[ import mx.events.FlexEvent; protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void { myHtml.location = "vt1_04_using_flash_builder.pdf"; } ]]&gt; &lt;/fx:Script&gt; &lt;fx:Declarations&gt; &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt; &lt;/fx:Declarations&gt; &lt;mx:HTML id="myHtml" left="10" right="10" top="10" bottom="10"/&gt; &lt;/s:WindowedApplication&gt; </code></pre> <p>Here's the issue: <a href="http://forums.adobe.com/servlet/JiveServlet/showImage/2-3977430-87134/pdf_error.png" rel="nofollow noreferrer">http://forums.adobe.com/servlet/JiveServlet/showImage/2-3977430-87134/pdf_error.png</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload