Hi. I am a developer and I am trying to build a button that allows text selection, copy it and create an annotation with the copied text as content. How can I do it? All I need is a little help to find out which function can I use from the API
Hi. I am a developer and I am trying to build a button that allows text selection, copy it and create an annotation with the copied text as content. How can I do it? All I need is a little help to find out which function can I use from the API
This really isn't a developer forum but I'll try to point you in the correct direction.
There aren't any text specific selection functions. Instead, Acrobat has a general selection sever mechanism that't used by any code that selects anything. This is related to the AVDoc. Read the bits about functions named "AVDoc???Selection". Once you acquire the selection object, you can query it for specific info. You might also consider asking this on the real developer forums.
[url=http://www.adobeforums.com/cgi-bin/webx/.eed56a0/]http://www.adobeforums.com/cgi-bin/webx/.eed56a0/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script