4 Replies Latest reply on Apr 28, 2011 10:59 AM by MCLMasterKey

    Possible to Find Text Based on X/Y Coordinates Using JavaScript API?

    MCLMasterKey

      Hello,

       

      I am basically trying to figure out how to do the opposite of the getPageNthWordQuads method.

       

      I have a series of pages in a PDF document and I would like to loop through all the pages and extract the word that will always be located in the exact same position on every single page. I hope this make sense.

       

      Basically, I would like some way to enter a specific X/Y coordinate and somehow get back the word that is on that area of the page.

       

      Not that it matters, but I know Flash's AS3 has a function very similar to what I am trying to do. I was hoping the Acrobat JavaScript API had something similar.

       

      Does anybody know if this is possible, and if so, could someone point me in the right direction?

       

      Thank you!