• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to add draw function on a fillable PDF

Community Beginner ,
Jan 17, 2020 Jan 17, 2020

Copy link to clipboard

Copied

Hello,

I am creating a fillable PDF for work and one of the requirements is that the user can use the "draw functin under "fill and sign" to actually sign the form


However, when I create the fillable form, I am only able to add a signature text boxt that asks for a digital signature

 

What should I do?

TOPICS
PDF forms

Views

7.4K

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
Community Expert ,
Jan 17, 2020 Jan 17, 2020

Copy link to clipboard

Copied

Don't create a signature field.

Votes

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
Community Expert ,
Jan 17, 2020 Jan 17, 2020

Copy link to clipboard

Copied

You don't need to do anything to allow the user to do that. It's a built-in feature of Reader DC.

Votes

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
Community Expert ,
Jan 19, 2020 Jan 19, 2020

Copy link to clipboard

Copied

The "draw tool" in Acrobat/Reader is  one of the standard PDF markup annotations.  It's also called the pen or pencil tool. You may want to add something to your form to clue the user to use it for a signature. For example, add a "Sign" button that just runs the menu item that activates the pen tool. Have the text on the button change to "Done". Then when they push is a second time it activates the hand tool. Something like that. 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
New Here ,
Nov 19, 2021 Nov 19, 2021

Copy link to clipboard

Copied

Can you please explain in steps how to do this?

Votes

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
Community Expert ,
Dec 07, 2021 Dec 07, 2021

Copy link to clipboard

Copied

The first part of this is running the menu item that activates the Pencil tool.

 

app.execMenuItem("Annots:Tool:InkMenuItem");

 

You can turn the tool off by running the Hand tool menu item;

 

app.execMenuItem("HandMenuItem");

 

Unfortunately, buttons on the form cannot be pushed when the pen tool is turned on. The user will have to turn this tool off manually. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
New Here ,
Sep 22, 2022 Sep 22, 2022

Copy link to clipboard

Copied

I am having the same issue... Is there a way to do this without coding? If not, where exactly do these commands go? I am able to add a button, but the option to run a hand tool menu item doesn't come up for me on the list of action choices. 

Votes

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
Community Expert ,
Sep 27, 2022 Sep 27, 2022

Copy link to clipboard

Copied

Unfortunately, the vast majority of Acrobat menu items were removed from the user interface in Acrobat X, or maybe it was 9.  Anyway, they are still there, but are hidden from the user. Which means they don't show up on the list of items for the "Execute a menu item" action.  Which is why I suggested using a script instead.

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
Community Expert ,
Sep 27, 2022 Sep 27, 2022

Copy link to clipboard

Copied

The scripts are entered into the "Run a JavaScript" Action of the "Mouse Up" trigger of a button field.  

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
New Here ,
Jan 12, 2024 Jan 12, 2024

Copy link to clipboard

Copied

I have used that script as described and nothing happens.

Other java running on the same form are working.

Acrobat pro dc

    Any ides?

    Thank you

Votes

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
Community Expert ,
Jan 12, 2024 Jan 12, 2024

Copy link to clipboard

Copied

LATEST

Unfortunately the "Annots:Tool:InkMenuItem" is blocked in a non-privileged scripting context. It won't work from a script inside a PDF, unless that PDF is trusted. 

 

 There is a way to simulate the pen tool using a script, but it's an advanced task. 

 

It's too bad there isn't a "scribble" field type. This would be pretty cool.   

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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