These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Acrobat Plugin

Solitaryman
Registered: Mar 9 2007
Posts: 12

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

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Hello Solitaryman,
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