Links are set by addlink() batch process. I wish to get text on which rectangular link field are placed.Is it possible? If so how can I get?
Jack Smith
Yes it is possible, but it requires writing a script. The script has to loop through all the words on the page, looking for a match between the link rectangle and the bounding box of the text. Look up the "doc.getPageNthWord" and "doc.getPageNthWordQuads" functions in the Acrobat JavaScript Reference.Thom ParkerThe source for PDF Scripting Info pdfscripting.comThe Acrobat JavaScript Reference, Use it Early and OftenThe most important JavaScript Development tool in AcrobatThe Console Window (Video tutorial)The Console Window(article)Having trouble, Why Doesn't my Script Work
Not easily. You would have to get the location of the link's quads and then look for words that fall within those quads.