Skip to main content
Participant
September 17, 2018
Answered

Javascript Pencil/Pen Tool

  • September 17, 2018
  • 1 reply
  • 992 views

Hello,

I'm attempting to create a button in acrobat that will also work within reader dc.

I want to be able to click a button and it selects the pen/pencil tool.

I seem to be able to get it to work in acrobat 9, but it doesn't follow across to Reader.

Is there document javascript I could include to make this work?

Is there also any scripting I could use to set the colour of the pencil?

This topic has been closed for replies.
Correct answer try67

The only way I'm aware of doing that is by executing that menu item, but since it doesn't appear in the list it might have been an undocumented feature, and as such likely to get broken between versions, if the name changes.

And it's not possible to set the default color used by the pencil.

PS. I'm moving your question to the Acrobat JavaScript forum.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
September 17, 2018

The only way I'm aware of doing that is by executing that menu item, but since it doesn't appear in the list it might have been an undocumented feature, and as such likely to get broken between versions, if the name changes.

And it's not possible to set the default color used by the pencil.

PS. I'm moving your question to the Acrobat JavaScript forum.