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

I cannot run the JavaScript debugger by pressing "ctrl+J" combination of keys.

Guest
May 07, 2017 May 07, 2017

My primary aim is to automatically restore the last openned tabs from the previsous session.

I have 17.009.20044 version of AR. However thre are only first four lines as given in

https://forums.adobe.com/thread/2255448

and NO section "JavaScript Editor" section.

It just ends with "Show console on errors and messages", and there is no way to search for the .js files folder from JS debugger

app.getPath(<folder type>,"javascript");

as given in

Instructions for Installing Folder Level Scripts (Automation Tools) and Plug-ins

to include a .js file from the help

javascript - Adobe Acrobat Reader Tabs Saving And Autoloading - Stack Overflow

into the correct directory.

The "ctrl+J" key combination does not work as well.

What's wrong with my instalation of AR?

Why I cannot run JS debugger from AR?

TOPICS
Acrobat SDK and JavaScript , Windows
4.1K
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 ,
May 07, 2017 May 07, 2017

If you are using any version of Adobe Reader or Acrobat Reader, the JavaScript console is not readily available to you. Not even to show an error.

With Reader one can set JavaScript errors to open the console by editing the programs " Edit =>Preference => JavaScript", selecting "JavaScript, and then enabling the appropriate options.

If you want to add a tool or menu option then you need to add a folder level JavaScript file with the appropriate code.

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 ,
May 07, 2017 May 07, 2017

Such a script can also be used to display the JS Console, which can then be used normally, just like in Acrobat.

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
May 08, 2017 May 08, 2017

SO HOW DO I ADD THE JS FILE FROM HERE TO ADD AUTOLOAD TABS FEATURE TO ADOBE??

javascript - Adobe Acrobat Reader Tabs Saving And Autoloading - Stack Overflow

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 ,
May 07, 2017 May 07, 2017

For some older versions of Acrobat Reader one needed to edit Window's Registry to enable it.

If you want to add a menu option to the "View" menu item one can use the following code:

app.addMenuItem({cName:"Console Window", cParent:"View", cExec:"console.show()"});

If you want more see PDFScripting.com Free Acrobat Automation Tools

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
May 08, 2017 May 08, 2017

WHERE/HOW EXACTLY SHOULD I ADD THIS CODE INTO?

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 ,
May 08, 2017 May 08, 2017

WHERE/HOW EXACTLY SHOULD I ADD THIS CODE INTO?

There is a red "Note" and a blue link on the landing page given by gkaiseril:

==> Instructions for Installing Folder Level Scripts (Automation Tools) and Plug-ins

This free tool may help you too: https://www.abracadabrapdf.net/utilities-in-english/pdf-utilities/show_me_the_path-en/

.


PDF Acrobatic, InDesigner & Photoshoptographer
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
May 08, 2017 May 08, 2017

This FREE TOOL would be great if it worked!

The instructions say, click button, select and press ENTER.

But after doing that, the selected text dissapears and nothing other happens.

What shall I do?

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 ,
May 08, 2017 May 08, 2017
  1. Nothing is wrong with your installation.
  2. You can't run the JS debugger in Reader by design.
  3. You won't be able to open it via Ctrl-J ever.

Since Acrobat Reader does not provide access to the Debugger through its menu items or the Ctrl-J key sequence, the only ways to access the Debugger are to execute a JavaScript, cause an error, or customize the user interface (for example, you could add a button that runs a JavaScript causing the Debugger to appear).

The link below explains the steps to enable the debugger and how to get it to show up in Reader... you're not going to like it.

Acrobat DC SDK Documentation

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
May 08, 2017 May 08, 2017

NOW, I have found the right folder for my JS documents.

However:

I have a problem with the JS code here

http://stackoverflow.com/questions/12689154/adobe-acrobat-reader-tabs-saving-and-autoloading

When I run AR, and open and save and load tabs everything works.

However when I open AR and try to Load Tabs, all pdf files are nonexisting.

Why?

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 ,
May 08, 2017 May 08, 2017

For that question, you'll need to ask the author of the code.

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
May 08, 2017 May 08, 2017

The question is CLOSED. WHere do I contact him?

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 ,
May 08, 2017 May 08, 2017

... and we'd know that... how exactly?

We're working off the same information you have at this point. Try Google.

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
May 08, 2017 May 08, 2017

BUT this whole is an adobe reader problem. Why should I try to "hack it" by javascript patch at all?

It should be possible to restore the previous session easily, as allow all good user-friendly applications,

be it Mozilla Firefox, DJVU viewer or Winedit for LaTeX file preparations...

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 ,
May 08, 2017 May 08, 2017

Why?... pretty much for the same reason that I can't upload animated GIFs to YouTube... Engineering resources vs. time spent working on a free product.

The JavaScript API was extended beyond the use of forms for the exact propose of allowing the community to extend Acrobat and Reader beyond what Adobe imagined or has time to put into the product. Your examples are accurate but for exactly the wrong reasons,  FireFox and LaTeX... and Atom and WordPress and Word, Excel, PowerPoint, iTunes, Photoshop, Illustrator... the list goes on and on and on... have APIs where end users have added functionality that was developed only because someone thought the product "should" have had that feature in the first place.

I've developed many myself.

That said, the top check box used in conjunction with the recent files list should get you there.

Screenshot 2017-05-08 11.03.42.png

If that's no exactly what you're looking for, you can submit a feature request at the URL below.

Adobe Acrobat Reader - Feature Request/Bug Report Form

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 ,
May 08, 2017 May 08, 2017

This FREE TOOL would be great if it worked!

The instructions say, click button, select and press ENTER.

But after doing that, the selected text dissapears and nothing other happens.

What shall I do?

Be sure to hit the Enter key and not the Return key.

These are the charms of Acrobat.


PDF Acrobatic, InDesigner & Photoshoptographer
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 ,
May 08, 2017 May 08, 2017

The key thing is that you need to know the difference between Acrobat (paid for) and Reader (free). Also the difference between Acrobat Pro and Acrobat Standard. Trying to follow instructions written for the wrong one will generally cause pain. Also disappointment; most things have to be paid for.

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
May 09, 2017 May 09, 2017

WHat is "recent files list"? Is it button "Home" or something else? WHere do I find 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
Community Expert ,
May 09, 2017 May 09, 2017
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
May 09, 2017 May 09, 2017

Ohh, but THIS has the same disadvantage as the List itself: you need to click one by one to open the files 😞

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 ,
May 09, 2017 May 09, 2017

I did mention that it might not be exactly what you want.

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
May 10, 2017 May 10, 2017
LATEST

0 down vote   accept  

Now I've found a partial solution and deteceted the problem.

The problem occurs only if I donwload to DESKTOP. If I download high enough in the hierarchy of files,

namely to subdirectory of D:\

the problem doesn't appear. I Don't know why, but I'm happy with this.

Perhaps someone can explain what's going wrong with downloading to DESKTOP?

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