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

Similar Messages

  • Getting scroll position

    I can read and write the zoom level of a document (doc.zoom).  I can scroll to a specific point in the document (doc.scroll).  Bu I can't read the current scroll position.  Is there a way around this.
    The scenario:
         I have 24 pdf documents each with a single page containing a picture.
         Each picture was taken with a fixed camera - one picture for each hour of the day.  So the pictures are of the same thing - just separated taken at different times.
         On the 1:00 am picture I see something I want to examine more closely so I zoom and scroll to a particular portion of the picture.
         Now I want to see the same area on the 2:00 am picture.  I can read open the 2:00 am picture and zoom to the same zoom level (by reading the zoom property of the 1:00 am document).
         But how do I get the the 2:00 am document to scroll to the same position as the 1:00 am document if I can't read the scroll position of the 1:00 am document?
    My actual issue is more complex than this scenario but this illustrates the question.

    In any case viewState only works with embedded PDF - which is not the scenario I have.
    In some respects I want something like synchronized scroll but I am dealing with multiple documents.  I open one document and zoom/pan to a particular spot.  Then I want to open another document with the same zoom and pan.  I will select the other document from a list which could have many dozens of documents.  It is impractical to open all the documents at the same time.
    One possibility I have not considered yet would be use Bookmarks.  Bookmarks store the zoom level but I don't know if they store the pan.
    What I want is something like the center point of the current view.  This value could be passed to doc.scroll.  Is there a parameter that gives the coordinates of the document view (not the screen coordinates - but the document coordinates?  I could calculate the point necessary for doc.scroll from thse coordinates.

  • Slow PDF scrolling on new 12" MacBook

    I recently tried the new 12" MacBook at the Apple Store and noted very poor PDF scrolling and re-sizing. It was very choppy for even basic scientific journal articles without many bitmaps or vector graphic images. Has anyone else experienced this? I was able to reproduce it on several machines. The MacBook Airs and Pros each were generally fast and even faster with transparency off.

    Please see Bluetooth not seen in Windows as a reference. The new 12" MB has BT issues with Windows.

  • PDF Scrolling in Safari

    Pdfs scroll very badly in Safari. It is jerky, very sensitive, too fast. This has come up before in the Communities, but the solutions I've found either don't work or aren't relevant after OSX updates. In preview scrolling is well behaved.  Any update solutions?
    I am using a Magic Mouse on an iMac running OSX 10.9.1,  Safari Version 7.0.1 (9537.73.11).
    Same problem on a MBP (same setup).
    Thanks

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print PDF's displayed in Safari, you may be able to print by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar may appear under the cursor. Click the printer icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
    Safari ▹ Preferences... ▹ Security
    and check the box marked
    Allow Plug-ins
    Then click
    Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others — I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • Images in PDF scrolling open?

    If I print an image-heavy presentation from Indesign (or powerpoint) to PDF the images in the PDF  scroll open - looks unprofessional. How can I get the whole page to open at once?

    Hi Ruth,
    Open the PDF file in Acrobat and choose File > Properties > Initial View.  Make sure 'Magnification' is set to 'Fit Page'.
    Save the document.
    -David

  • If I have a repeating event in iCal, can I attach different docs, pdfs, etc., do the events. I am entering lessonplans and want each date to have an attachment.

    If I have a repeating event in iCal, can I attach different docs, pdfs, etc., do the events. I am entering lessonplans and want each date to have an attachment.

    Yes. As you edit each one, you will get a dialog asking whether you want to change all or just the current one.

  • Opening a new link in a tab (contr+click or right click and open in new tab) causes ff to lose scroll position in first tab or main website, like google.

    Opening a new link in a tab (contr+click or right click and open in new tab) causes ff to lose scroll position in first tab or main window, like google.
    This does not happen when opening in a new window (shift+click).
    It was never a problem in older versions. I now have ff 3.6.17. I' afraid to install ff4 because everytime i do so (install e new version) something i liked dissapears or good add ons dont work anymore!
    I also don't like the fact that more and more of the adress barr is beïng used for crap i don't need. I'm a visual handicap and need all the space i can, just to read.
    Thanks for helping me out.

    To help other users find solutions, please return to this Thread and '''Sign-in''' to the forum with your Username and Password:
    click on '''"Solved It"''' next to the reply ABOVE that '''BEST''' solved your question
    '''DO NOT click "Solved It" next to this reply

  • How to avoid blinking / moving of rows in a data grid when you restore the scroll positions

    By Default when an update is made on a data grid, it scrolls to top row. To avoid this when we save the vertical and horizontal scroll
    positions and restore the scroll positions after the update, it causes a blink in the grid (or moving / jumping) of rows. Is there a way to
    avoid this jumping of rows?
    In JavaScript this can be achieved by overriding the scrollToTop / OnLoad methods of datagrid to directly scroll to current scroll
    positions instead of top row. Is there a way to achieve similar feature in flex / actionscript?

    I am calling validateNow().. Also, using verticalScrollPosition to restore the scroller as in the link that you posted.. Reposition is working fine, But the bug filed is regarding BLINKING / JUMPING when this happens (i.e. this blinking is caused because after datagrid edit, during reload the scroller tries to move to  the top by default, then it repositions itself to current edited row as the verticalScrollPosition property is overridden ).. I have to get rid of this blinking.
    In Javascript it is dealt by overriding OnLoad method of datagrid to directly scroll to current scroll position instead of top row during reload so that there is no blinking.
    http://www.sencha.com/forum/showthread.php?13898-Is-there-any-way-to-keep-scroll-position- of-Grid-on-load
    Is there a way to achieve similar feature in flex?
    I am not sure what flex datagrid method to override.. Theres no method like load? What is the datagrid method that is called by default during reload (after datagrid edit) that causes the scroller to go to top?

  • Web page in iframe does not maintain scroll position on refresh in FF4

    I have a web page on my local drive which refreshes live sports commentary every minute in an iframe.
    In FF3.6.x the page in the iframe retained the scroll position of where I had moved to.
    In FF4 the page within the iframe goes back to the top so I now have to scroll down every time to where I want to read.
    I disabled all addins in FF4 and have tried this on different URLs but the page in the iframe still returns to the top.

    Similar problem running a 27" iMac only it occurs in Excel and inDesign. Hit the cell with the curser and the worksheet moves over to the right 7 or 8 cells away. Have to curser back to the cell quite frequently. This issue make the machine unusable when working with those two aps. Today I did the ultimate and completely reloaded Yosemite and the problem is still there.

  • Scroll Positions do not work if Scroll Policy is 'off'

    I am using flex SDK 3.3.0.4852
    I have a canvas with
    canvas.horizontalScrollPolicy = "off";
    canvas.verticalScrollPolicy = "off";
    This canvas has an image in it, and I set the horizontal and vertical scroll positions programitically.
    canvas.horizontalScrollPosition = canvas.maxHorizontalScrollPosition;
    canvas.verticalScrollPosition = canvas.maxVerticalScrollPosition;
    then I save the scroll values in an xml file, and then on reopening of the xml file.. I do the following
    canvas.addEventListener("creationComplete", setScrollPositions);
    and in the method setScrollPositions(event) i do the following again
    canvas.horizontalScrollPosition = canvas.maxHorizontalScrollPosition;
    canvas.verticalScrollPosition = canvas.maxVerticalScrollPosition;
    But unfortunately it does not show any change in the scroll positions visually, and the default scroll positions persists. Though if i call an alert
    Alert.show(canvas.verticalScrollPosition.toString()); //it does show me some value, e.g. 56
    Now if i only set horizontal and vertical scrollPolicy = "on" ... all works fine. But the problem is that I want to hide my scrollbars and there is no other way I can do it. So please if there is any solution to it or if there is any workaround, do let me know. Thanks.

    i'm having the same problem and i just got a brand new dell..when i hold down the left click over the up or down arrows, my songs in itunes only go down one line rather than scrolling up or down while im holding down the left click...any help is appreciated..

  • Accordion Widget not saving current scroll position

    Accordion widget saves scroll position in Firefox, however in
    IE7 the position gets reset to the center of Accordion Widget.
    Example. Select Alabama and then select Wisconsin to see
    effect.
    See www.Qualite1.com/contactUs.html

    Hi ghaug,
    This is due to the tabindex attribute that is on the
    top-level element of the accordion. Apparently when an element is
    focused in IE, it tries to make sure the top of that element is in
    view, so it is "conveniently" scrolling it into view for you.
    To prevent this behavior for accordions like yours that don't
    fit neatly into a single screen, you are going to have to remove
    the tabindex attribute from the top-level accordion element. If you
    still want/need keyboard navigation of your accordion, then you
    have to switch to using links in your accordion tabs. You can find
    an example here:
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html#EnablingKey boardNavigationWithLinks
    --== Kin ==--

  • Last page scroll position not remembered

    After getting search results in Google, I click on a subject, then when I click "back" it returns to the top of the previous page. It's like it doesn't remember where it was. One fix I found was to change cache-control in about:config. But I can't find it. Where is I located? Another fix is "Restore Scroll Position" does this work on ver 3.6.12 ?
    TIA

    It is usually easier to open the results in a new tab with a middle click on the link and close that tab with a middle click on that tab on the tab bar.
    For the Google website you can set your preferences on the Google.com page via the [http://www.google.com/preferences?hl=en Google Search settings] link at the top right.
    Results Window: Open search results in a new browser window.

  • ADF Treetable scrolling position resets to top on refresh

    I have a master details page with the following components.
    TreeTable with a Check Box on LHS  and TabbedPannel on RHS.
    So, users can select any row on the LHS and the corresponding details will be displayed on RHS in a new Tab. When user closes the Tab it will clear the Check Box on TreeTable.
    Issue is, when user is at last row of TreeTable when there are more rows (Scroll bar will be at last), and user closes the Tab on RHS side, I will be clearing the checkbox binding and refresh the treetable using PPR to reflect the same.
    This is causing the treetable  scroll bar to be reset to the top. And User lost the old position on needs to scroll down again.
    Can we control the Scroll bar position after PPR refresh (or)
    Can we just clear off the CheckBox selection (only one row) with out refeshing the whole treetable
    Environment:
    JDev Version : 11.1.1.6.2
    Component : ADF TreeTable with TreeModel binding (Not using BC)

    In my case, I am fine with disclosureState items. They do not collapse even after I remove the checkbox selection and refreshing the TreeTable component.
    Only issue is scrollbar is resetting to top.
    I can't use the disclosure event as they can do expandAll , select first compoenent scroll down and close the selection on RHS tab.
    Which will reset the LHS scrolling position to top.

  • Table Scroll Position

    Hi.
    How can I get and set the scroll position of an table?
    VG

    Hi Marcus,
    Can you please provide some more details with the proper code if posiible.
    Thanks & Regards,
    Seema Chand.

  • WebView scroll position

    How can I get and set the vertical scroll position for a WebView?

    You mean something like:
    webView.getEngine().executeScript("window.scrollTo(100,100);")That didn't have any effect as far as I could tell.
    Any good reason why there isn't a Java API?

Maybe you are looking for

  • I am having trouble with my Mac Pro 2006

    I can get it to boot up in safe mode only. Will not boot from a disk, will not boot up regularly, wavy pink lines across the entire screen, even after its booted in safe mode.  If I try to booted up normally I just get stuck in the grey/blue screen a

  • Cannot compile JSP pages in Tomcat 5.0.28

    Hi, I'm new to Tomcat and this has been bothering me for days now. I have (seemingly) correctly installed Tomcat v5.0.28 and am currently in the process of testing my environment with simple html/jsp pages. My server starts up fine with no error mess

  • Recommendations for a CD project

    I have a big project and I am a new Captivate user. I need to create 3-4 separate demonstrations, and add music and video just for professional presentation. I was wondering if anyone would like to advise me on my approach? Should I use Captivate for

  • What kind of performance difference would cuda and quad core make in Premiere?

    I am torn between spending $1.5k and $2k on a new macbook because the 15inch one has a 650m and i7 but is more expencive. I currently run a beastly system and want something for a mobile rig for more casual projects. How much of a performance boost w

  • Create MSI to configure the Wifi settings

    I have a scenario where multiple users must have their Windows 7 laptop Wifi settings configured as per a specified configuration. We don't have a AD environment, hence the configuration cannot be done through GPOs.  I tried playing around with the "