Javascript Pencil/Pen Tool

New Here ,
Sep 16, 2018 Sep 16, 2018

Copy link to clipboard

Copied

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?

TOPICS
Acrobat SDK and JavaScript

Views

189

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Most Valuable Participant , Sep 17, 2018 Sep 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.

Likes

Translate

Translate
Most Valuable Participant ,
Sep 17, 2018 Sep 17, 2018

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines