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

Possible to change text color with JavaScript?

StevenD
Registered: Oct 6 2006
Posts: 368
Answered

Is it possible to search for words in a PDF document and change the color say from black to blue?

StevenD

My Product Information:
Acrobat Pro 8.1.2, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
JavaScript can not modify PDF text, only the properties of form fields.

George Kaiser

StevenD
Registered: Oct 6 2006
Posts: 368
Well let me ask this. Can I search for text and add a link to it?

StevenD

saraveenan
Registered: Oct 21 2007
Posts: 38
Sure you can do this, but you should find words on a page and thier coordinates use the "doc.getPageNthWord()" and "doc.getPageNthWordQuad()" functions.

View this -

http://www.acrobatusers.com/forums/aucbb/viewtopic.php?pid=26894#p26894


Regards,

Saravana :)

Saravanan Murugesan

StevenD
Registered: Oct 6 2006
Posts: 368
Thanks Saravana. Those will help. I thought I saw an article or entry somewhere that told about how to use those two methods you mention but I can't seem to find it. Anyway thanks again.

StevenD