Scroll to and Focus/Center annotation in View

In an attempt to duplicate functionality that existed in Adobe 9, I am trying to make buttons that will jump to the next/previous annotation in relation to the currently selected annotation. I have all the code working up to moving the view precisely to the annotation location and centering on that comment.
Workspace: Adobe Acrobat XI Professional running on Windows 7 64bit. Multipage Adobe Acrobat file open, with annotations (comments) dispersed throughout. One annotation is selected/in focus in the UI.
Problem: My issue seems to be with the doc.scroll() method. I can jump to the page where the next/previous annotation lives, but then calling .scroll() on Rotated User Space coordinates derived from the annotation.rect does NOT center the view as the method description states in the documentation. Is this method somehow dependant upon the zoom level or doc layout that I am not aware of? Code in question is below:
    // nextComment is the annotation object I want to center on
    myDoc.pageNum = nextComment.page
    // Convert from Default User Space to Rotated User Spaec
    var m = (new Matrix2D).fromRotated(myDoc,0);
    m = m.invert();
    var nextCommentRect = m.transform(nextComment.rect);
    // Scroll the center of the view to the comment's top left corner
    myDoc.scroll(nextCommentRect[2], nextCommentRect[1]);
    // Open the comment popup
    nextComment.setProps({popupOpen: true});
When running this code on a test PDF, the document does scroll but never to the right place. What is wrong here? Is there a better way to implement this functionality than my attempt here?
I appreciate any help you can provide.

Thanks for your reply!
1. I fixed the parameter of fromRotated to refer to the correct page. Thanks for that!
2. I am confused about this comment. The third object of the Rect array is xur, is it not? Why would we be passing an x coordinate to the nY parameter of the scroll method?
3. Centering the view is actually not entirely important, but certainly desired. At a minumum I expect to have the annotation in view but it doesn't have to be centered.
My desired behavior can be duplicated by the following: when the comment sidepane is shown, one can click on any annotation and the view scrolls the document enough such that the annotation is completely visible (and keeps the current zoom level).

Similar Messages

  • Web browser resets scroll position and focus when page load completes

    when a page is loading, the scroll position of the page reverts to the top-left and focus in a form element is lost whenever an element or the whole page finishes loading
    Post relates to: Pre p100eww (Sprint)

    Possibly related to the OP's question, I wish we could get the composition page to scroll when typing a reply here on the forum (while using my Pre plus).
    Quoting a reply fills half the text box, then once I reach the bottom of the box, I can't scroll any further downward to complete my reply...
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Scroll up and down through apps (grid view) rather than side to side?

    Is there a way to scroll through your apps up and down instead of side by side while in grid view (not list view)?

    ginagee10 wrote:
    Is there a way to scroll through your apps up and down instead of side by side while in grid view (not list view)?
    not in the stock form
    a third party launcher such as adw may be able to

  • Maintain Scroll Position And Focus On Postback for Grids and Child Grids

    I want to implement something like the asp MaintainScrollPositionOnPostback=True but for refreshing screens to the same position after refresh and maintain the focus on the grids/list and child grids/lists selected entries. Is there a way to do this?
    also I am forwarding from the order screen to the review orders screen using "Below Code" and would like to be able to focus on the person the order is for as the selection in the gid/list of the review screen shown
    partial void MedicationOrder_Saved()
    // Write your code here.
    this.Close(false);
    Application.ShowTimesAndMARs();
    //original code
    //Application.Current.ShowDefaultScreen(this.MedicationOrderDetailProperty);

    I want to implement something like the asp MaintainScrollPositionOnPostback=True but for refreshing screens to the same position after refresh and maintain the focus on the grids/list and child grids/lists selected entries. Is there a way to do this?
    I have no idea for this requirement, but I think you could consider implementing the highlighting of GridView row on row click and retain the selected row on postback.

  • Calendar Month View won't scroll up and down

    This is a very minor, but strange issue with Calendar.
    I can scroll up and down in Calendar month view on my MacBook Air, but on my Mac Pro, I can only switch months by clicking the" >" button or "Command+Left Arrow".
    Anyone know why?
    Thanks.

    I'm using Yosemite on both.
    I did a little research and saw some comments that mentioned that vertical scrolling works with the trackpad, but not with mouse scroll wheels... so there's that. Doesn't make sense, but it's possible.

  • I have created a PDF and password protected it for view. However, when reading the PDF in Adobe Reader app on the iPad the commenting and annotation options are not available. Is there a way to allow commenting and annotation in the app while password pro

    I have created a PDF and password protected it for view. However, when reading the PDF in Adobe Reader app on the iPad the commenting and annotation options are not available. Is there a way to allow commenting and annotation in the app while password protecting the document?

    Is there a setting that needs to be set to allow the annotation features?  I set password protection to open and then password for editing and set it to Any except page extraction, but it still did not give the annotation option

  • For weeks I have been viewing a doggy day care via their web cam.  This weekend I upgraded to Lion and have been unable to view the center since.  I get an error message for java webcam class not found.  All of my software is up to date--suggestions?

    For weeks I have been viewing a doggy day care center via their web cam.  This weekend I upgraded to Lion and have been unable to view the center.  I get an error message for Java plug-in 1.6.0_29 ....webcam class not found.  Any suggestions on how to fix this?

    Sorry, don't know what else to suggest unless there's a URL to the problem stream that someone here can try. Otherwise we can't test it to try and determine what might be wrong.
    BTW, make sure they're testing it with a Mac, not with a Windows system. If they test only with Windows, what they say is or is not working doesn't mean much.
    Regards.

  • How do I view the Horizontal Scrolling bar and status bar at the bottom of the screen. I can only see the top menus, toolbars and vertical scroll bar?

    Before the most recent upgrade, the bottom horizontal scrolling bar and status bar appeared on my screen. Now since upgrading, I cannot see the. Anyone ideas how to restore them?

    If you haven't already, you could force-quit Quicktime by using the menu option from the desktop (finder) and choose Quicktime.
    Not sure what you have frozen on the screen, be it a failed movie, or some unusual screen shot. If you can find by date (created) you may be able to look for .mov or quicktime suffix name or other video file content to delete it.
    And you may have to restart your computer and perhaps run repair disk permissions from Disk Utility's first aid on the hard disk drive in your computer.
    Not sure if all that would help now, but it is something a few days late...!
    Good luck & happy computing!

  • Std report to dispaly Sales Order and Profit center data

    Hi,
    I want to display list of Sales Order and profit center in one report  for that Sales organisation
    Is there any T-code where i can view Sales Order and its Profit center.
    **Plz if anyone knows abt this reply soon.
    Thanks
    AKASH
    Edited by: AKASH TAMBI on May 20, 2008 1:28 PM

    Dear Akash
    There is no standard report to see both the sale order reference and profit center.  However, if you go to SE16 and use table VBAP, you can see the required details
    thanks
    G. Lakshmipathi

  • Report Needed to show WBS and Profit Center on Invoices

    I need a report of open and cleared invoices that show the WBS and Profit Center.
    I have tried the FBL5N and it doesn't populate it. Any other reports out there???

    You dont have to join them. Keep both profit center and cost centre in the cube. While defining the update rules, derive profit center from cot centre.
    In the report , keep profit center and cost centre as free char.
    The users can dynamically drill down and view the report for cost centre or profit centre or both.
    Another idea is to keep profit centre as a nav attribute in the cube and in that case, you dont have to derive profit centre from cost centre in the update rules.
    Ravi Thotahdri

  • Creating iphoto book and can't seem to view/ work on only one page at a time.

    I am creating an iPhoto book and can't seem to view/work on only one page at a time.  The Navigator, that allows you to focus on a part of the page is actually 1 1/2 pages in size so 1 1/2 pages are in view when trying to work on one page.  What am I doing wrong or how can I fix this.  It is very distracting viewing half of a previous page when trying to create a new page and write a story to go with the related pictures.

    My Navigator seems to be to large.  It covers 1 1/2 pages while in the training information it shows as the size of one page.  Is there a way to adjust the size of the Navigator?
    You can hover the mouse over the left border of the Navigator - then the cursor will turn into a resize cursor and you can drag the border and make the Navigator panel smaller by enlarging the source list.
    Or drag the lower right corner of the iPhoto window and shrink the appliaction window. This will only make the navigator smaller - the source list and information panel will stay the same size.
    Regards
    Léonie

  • Auto Focus in List Tile View in iPad : AGENTRY

    Hi All,
    I am facing a critical problem. I have a screen with two List tile view. The object assigned to the screen is MainObject and the two List tile views display Collection1 and Collection2.
    Now the requirement is user should select an object from either Collection1 or Collection2 and press on continue button.
    I am using an iPad as device. The problem is when the screen is displayed, the first object from each List tile view is automatically focused. I can't change the Initial focus setting at all. Whatever entry is given in the Focus field, the first objects of both the List Tile views kept on selected.
    Is there any resolution so that I can atleast define the initial focus??

    In terms of setting the selected item in a tile list you can use the List Selection action step.
    So in your action that displays the screen, after the navigates step add a List Selection step (or two in your case) to set the initially selected item in each list.
    You will specify the Screen Set / Screen and List Control that the step will act against and then define how you want rows selected (By Rule, First Row, Last Row, Next Row, None).  In my example about I am using a rule to select the first row where my rule returns true.
    While I have done this for a single list successfully I have not tried with two lists but don't see any reason it shouldn't work.
    --Bill

  • External ThinkPad USB Keyboard with TrackPoint issues with scroll (55Y9003) and hotkeys on a x201

    Hello
    Once more there is a glitch with the drivers for this external keyboard 55Y9003.
    I have the drivers:
    16.2.19.13 for the ultranav system of the x201
    1.10 for the external keyboard
    My system is XP sp3.
    The keyboard of the x201is fine relative to the one  55Y9003.
    The scrolling is set to standard for both systems.
    Please do not advise to select smooth; it is not a solution and the smooth scrolling has been systematically utterly unusable.
    The issues:
    -the hotkeys on the external keyboards are not all working:
    basically, fn+f4 and fn+nmlk work but the rest does not (say fn+f8)
    -the scrolling of the external keyboard is not at all identical to the scrolling of the x201.
    For instance, in pdfs viewed with foxit for instance, I have not a problem to scroll horizontally with the x201 starting with the hand tool.
    WIth the external keyboard, whan I press the middle button to activate the scrolling, it remains the hand tool, I can scroll vertically but not horizontally.
    FIrefox as also issues whith the middle button.
    -the external keyboard still suffers from the sticky shift key.
    I know the x201 and the 55Y9003 are no longer fashionable, but  Is there some directly  guy working at Lenovo who could help ?

    I have the ThinkPad USB keyboard on a non-Lenovo desktop, and it works.
    Yes the keyboard driver installs, but not the Lenovo System Interface Driver, for obvious reasons. All the buttons and TrackPoint work.
    Yes the TrackPoint does not scroll in all programs. Search the community for "trackpoint scroll fix" and you will come up with instructions on how to fix this.
    I don't work for Lenovo. I'm a crazy volunteer!

  • Link between G/L Account and profit center

    Hello dear all,
    I have an issue in Intra-company process.
    I made 2 customer payment for 2 different company code:
    1/ Company 1000: i have 2 line items posted (in G/L View)
    2/ Company 2000: For the same Cash account and the same customer account used in my first case (with company 1000) i have 4 line item posted in the G/L view and with different " PARTNER PROFIT CENTER"
    I do not know wher can i find in customizing the link between G/L Account and Profit center ?
    Thank you in advance

    The document splitting is active in your company, at the same time, the "zero balance" for profit center is activated in your doc split characteristics. In order to balance the profit center in General View, it creates another line item for balancing it which is the zero balancing account or split the cash account according to profit center assignment. For some cases, they are split equally that is why it is best that you assign the profit center in the cash account upfront and create line item for each payment with different profit center assignment.
    For instance, there are two customer line items with different profit center assignment
    Customer Line Item 1 = Assigned to Profit Center 2000 amount 500
    Customer Line Item 2 = Assigned to Profit Center 3000 amount 500
    When I post a payment of 1000, the Entry View is
    Cash                 1000
        Customer                1000
    GL View
    Cash       PC 2000       500
         Customer PC 2000         500
    Cash      PC 3000        500
         Customer PC 3000          500

  • How do i get to see websites on full screen so i dont need to keep scrolling left and right?

    before i could see the whole width of a webpage without scrolling left and right but now everything is bigger and i cant see the whole page without scrolling.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages

Maybe you are looking for