Skip to main content
August 29, 2016
Question

Javascript to execute Check Box tool in Adobe Acrobat Pro DC

  • August 29, 2016
  • 1 reply
  • 786 views

Hi,

I want to draw check box by program in Adobe Acrobat DC.  app.listToolbarButtons() returns nothing.  I am unable to find the cName for check box tool.  If i am trying to call using execMenuItem that also not possible.  can any one help me on his.

Thanks

Ariv

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 29, 2016

You should use the addField method of the Document object if you want to add a check-box field.

August 29, 2016

Hi,

I wanted to add the check box at the position where the mouse is in.  I wanted to execute the 'check box' tool through program.  if i have executed that check box tool then i can able to draw the check box. 

If you are suggesting any other method of drawing checkbox, that is also ok for me.

Thank you

try67
Community Expert
Community Expert
August 29, 2016

That's possible, but it means you will have to execute the command using only the keyboard, which is a bit tricky (but not impossible)...

You can use the mouseX and mouseY properties of the Document object to get the current location of the mouse, in default user space in relation to the current page.