Convert user space coordinates to device coordinates

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default Convert user space coordinates to device coordinates

    Hi,

    I need to convert the coordinates of a word (PDWord object) to device coordinates (the actual coordinates on the screen). Could someone please point me how to do it, what formula to apply ?

    Thank you.

    I use Adobe 9 SDK with VS2008.
    Florin_O@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. x and y coordinates
      Is there a way to enter the x and y coordinates of an object to change its position on the page. I see the info pallette gives the x and y...
    2. colorpicker with uv coordinates
      i thought it would be easy to figure out how a colorpicker for textures could be done. but i run into a problem! i made a cube and generated for...
    3. Mouse Coordinates -- off .swf
      Hi - I'm trying to display mouse coordinates as a design element for my portfolio site. That part is easy enough, but I want to keep tracking the...
    4. Some help with coordinates please!
      Hullo! Ok, so, I have this friend (clichè? no, no, I swear it's true!) that has a problem. I thought i could help her but I couldn't after all. ...
    5. Text Coordinates?
      I am creating a custom menu for a game and it is imperative that the text that I place is placed at the right coordinates (x,y). Is there a way in PS...
  3. #2

    Default Re: Convert user space coordinates to device coordinates

    Please see AVPageViewPointToDevice in the SDK 9 Documentation.

    Please also note that SDK 9 was only certified with VS2005 - it was not tested against VS2008 so correct results using this platform cannot be guaranteed.
    PDL@adobeforums.com Guest

  4. #3

    Default Re: Convert user space coordinates to device coordinates

    Hi,

    Thank you for the answer. I still have one issue though.

    I use AVPageViewGetFirstVisiblePageNum/AVPageViewGetLastVisiblePageNum functions to find the visible pages. If two pages are displayed in the same time, I can only convert the coordinates for words that belong to "active" page, that is, the page obtained using AVPageViewGetPageNum function.

    Is there a possibility to get the correct coordinates for the other visible page(s) ?

    I tested with VS2005 as well and got the same results.

    Thank you.
    Florin_O@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139