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

Selected text in pdf in .Net

brindhak
Registered: Sep 28 2007
Posts: 16

Hi...
How to get the selected text in pdf file...whether it can be done in vb.net or else javascript...i want the text of user selection in pdf...

My Product Information:
Acrobat Pro 6.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You cannot get the highlighted text from Acrobat JavaScript, but you can get it from VB application (whether it's .Net or not). Take a look at the Acrobat Inter-Application Communication(IAC) reference. There's a PDTextSelect Object. You'll find this document here:
http://www.adobe.com/devnet/acrobat/

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script