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

Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Such a script can also be used to display the JS Console, which can then be used normally, just like in Acrobat.

Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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

Copy link to clipboard
Copied
WHERE/HOW EXACTLY SHOULD I ADD THIS CODE INTO?
Copy link to clipboard
Copied
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

Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
- Nothing is wrong with your installation.
- You can't run the JS debugger in Reader by design.
- 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.

Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
For that question, you'll need to ask the author of the code.

Copy link to clipboard
Copied
The question is CLOSED. WHere do I contact him?
Copy link to clipboard
Copied
... and we'd know that... how exactly?
We're working off the same information you have at this point. Try Google.

Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
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.
If that's no exactly what you're looking for, you can submit a feature request at the URL below.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.

Copy link to clipboard
Copied
WHat is "recent files list"? Is it button "Home" or something else? WHere do I find it?
Copy link to clipboard
Copied

Copy link to clipboard
Copied
Ohh, but THIS has the same disadvantage as the List itself: you need to click one by one to open the files 😞
Copy link to clipboard
Copied
I did mention that it might not be exactly what you want.

Copy link to clipboard
Copied
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? |

