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

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

Guest
Jun 26, 2016 Jun 26, 2016

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

TOPICS
Acrobat SDK and JavaScript
2.2K
Translate
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

Community Expert , Jun 28, 2016 Jun 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.

Translate
Adobe Employee ,
Jun 26, 2016 Jun 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.

Translate
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
Guest
Jun 26, 2016 Jun 26, 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?

Translate
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
LEGEND ,
Jun 27, 2016 Jun 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.

Translate
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
Guest
Jun 27, 2016 Jun 27, 2016

That is not related problem.  Simply I wanted to know the uses of these files thank u.

How to install adobe SDK?  While installing Adobe will it automatically installed? Other separately we need to install?

What about Adobe Extended Tool kit?  How can i get this?

Ariv

Translate
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
Guest
Jun 26, 2016 Jun 26, 2016

Thanks for your valuable information Irosenth.

if further information needed i will mail you.

Translate
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
Guest
Jun 26, 2016 Jun 26, 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?

Translate
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
LEGEND ,
Jun 28, 2016 Jun 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".

Translate
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
Guest
Jun 28, 2016 Jun 28, 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?

Translate
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 ,
Jun 28, 2016 Jun 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.

Translate
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
Guest
Jun 28, 2016 Jun 28, 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?

Translate
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
LEGEND ,
Jun 29, 2016 Jun 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.

Translate
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
Guest
Jun 30, 2016 Jun 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

Translate
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
Adobe Employee ,
Jun 30, 2016 Jun 30, 2016

AVMenuItemExecute, IIRC…

Translate
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
Guest
Jul 01, 2016 Jul 01, 2016

Thank  you...  can u able to help me to execute the submenu item through javascript.  I am using the below code to open the 'Open' dialog box from File menu.  That is working fine.  But If i am trying to open the menu 'PDF from File' under File -> Create menu it is not working.

myTrustedMenu=app.trustedFunction(function(name)

{

app.beginPriv();

app.execMenuItem(name);

app.endPriv();

});

app.addToolButton({

cName: "File Open",

cExec: "myTrustedMenu('Open');",

cTooltext: "Plugin menu execute"});

Thanks for your help.........

Translate
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
LEGEND ,
Jun 30, 2016 Jun 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.

Translate
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
Guest
Jun 30, 2016 Jun 30, 2016

Thank you.  I will try .....

Translate
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
LEGEND ,
Jul 01, 2016 Jul 01, 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")

Translate
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
Guest
Jul 01, 2016 Jul 01, 2016

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

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

Ariv

Translate
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
Guest
Jul 05, 2016 Jul 05, 2016

can you help me to link the icon image to custom tool button in adobe reader? 

Translate
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
Guest
Jul 05, 2016 Jul 05, 2016

can u help on this?

Translate
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
LEGEND ,
Jul 06, 2016 Jul 06, 2016

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

Translate
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
Guest
Jul 06, 2016 Jul 06, 2016
LATEST

thank you. I will ask this as new question.

Translate
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