4 Replies Latest reply on Apr 24, 2009 4:22 AM by Michael Borbor

    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.