Skip to main content
June 26, 2016
Answered

Draw rectangle using mouse event & giving link to rectangle in adobe reader

  • June 26, 2016
  • 9 replies
  • 2439 views

Hi,

I am new to adobe programming. 
Can any one help by giving the code for drawing rectangle using mouse event in adobe reader document.  I also wants to give link to the recangle.  While pressing this rectangle the link brinks to me to some page.

Thanks

Ariv

This topic has been closed for replies.
Correct answer Karl Heinz Kremer

Are you referring to ExtentScript Toolkit? That is to create JavaScript based solutions for other Adobe applications (e.g. Photoshop, InDesign, Illustrator, …) and cannot be used with and for Acrobat's JavaScript programming.

9 replies

Legend
July 6, 2016

Your question is no longer related to your message subject. That may stop people who could answer from reading it.

July 6, 2016

thank you. I will ask this as new question.

Legend
July 1, 2016

Have you found the internal code of the menu item? These have no dependency on sub menus. You cannot just use the name you see on screen (you are lucky with "Open")

July 1, 2016

Thank you for your reply.  I got the menu name using app.listmenuitem.

That is working fine now with out any error............

Ariv

Legend
June 30, 2016

If your add on is in JavaScript see the documentation for methods of the app object, I'm sure there is a method to execute menu item by its internal code. This ONLY simulates a single menu click, it does not pass any parameters and there is no way to suppress UI.

June 30, 2016

Thank you.  I will try .....

Legend
June 29, 2016

To work with Acrobat XI download the Acrobat XI SDK if it is still available. The important thing is the SDK is full documentation, many thousands of pages you need to read. There are samples too, but only if a very few things. You will not find samples to adapt for every need, and they do not replace reading the documentation.

I am not sure why you keep mentioning editing Javascript. Plugins are written in C/C++. There is no alternative. The documentation tells you which IDE to use. A particular version of Xcode or Visual Studio for each SDK, be sure to get the right version.

June 30, 2016

Thanks for your reply.  I have another one doubt.

I have installed 3rd party plugin.  What I wanted to do this is, I need to create one tool button and by pressing this I wanted to execute one of the menu item in Plugin menu Acrobat XI.  How can I execute menu item by addon tool?

Ariv

lrosenth
Adobe Employee
Adobe Employee
June 30, 2016

AVMenuItemExecute, IIRC…

Karl Heinz  Kremer
Community Expert
Karl Heinz KremerCommunity ExpertCorrect answer
Community Expert
June 28, 2016

Are you referring to ExtentScript Toolkit? That is to create JavaScript based solutions for other Adobe applications (e.g. Photoshop, InDesign, Illustrator, …) and cannot be used with and for Acrobat's JavaScript programming.

June 29, 2016

Yes.  Thank you for your valuable reply.  Which editor will be useful to program adobe acrobat reader using javascript?  ExtentScript Toolkit won't be useful for this?

Legend
June 28, 2016

The Acrobat SDK is a separate download. You are apparently testing with an old version of Acrobat and it will not be possible to develop plugins with that. So subscribe to or buy Acrobat Pro DC and download the SDK.

I don't know what you mean by the Adobe extended tool kit. Please be sure to give accurate product names and versions, we expect this from developers - especially there is no product called "Adobe" which you referred to. Nor is there an "Adobe SDK".

June 29, 2016

I am using Adobe Acrobat XI Pro.  Can i able to use SDK for this version? 

How I need to install SDK?

is SDK only gives sample codes or any other use is there for this?

June 27, 2016

Hi Irosenth,

What is the use of the below Java Script files in Java Script folder.

debugger.js

aform.js

ADBC.js

annot.js

media.js

is these files are essential for other .js files in this folder to work properly.  If any one of the above is missing, other .js codes like drawing rectangle or creating annotation .js wont work properly?

June 27, 2016

Thanks for your valuable information Irosenth.

if further information needed i will mail you.

lrosenth
Adobe Employee
Adobe Employee
June 26, 2016

You can do this with a plugin written in C/C++. There is a sample in the SDK.

However, it will require you to learn about not only Acrobat/Reader, but also PDF itself.

Finally, since this is for Reader, you will need to obtain a license and key from Adobe – which is not necessary granted (esp. in your case since you are duplicating functionality form Acrobat into the free Reader) and does have a cost associated with it. I suggest you start by filling out and filing the necessary paperwork – also in the SDK.

June 27, 2016

Hi Irosenth,

Thanks for your reply. Can u clarify the below doubts?

What is the use of the below Java Script files in Java Script folder.

debugger.js

aform.js

ADBC.js

annot.js

media.js

is these files are essential for other .js files in this folder to work properly.  If any one of the above is missing, other .js codes like drawing rectangle or creating annotation .js wont work properly?

Legend
June 27, 2016

I cannot imagine why anyone would have the answer to this, or how it relates to the original problem, which does not involve JavaScript. This also suggests you are not developing with current or supported versions.