Copy link to clipboard
Copied
Hello everyone,
I have many tabs opened (32 tabs ) and I am using Adobe Acrobat Reader version 2023.006.20380.
I need to save all the 32 tabs separately into new folder, kindly, could you guide on the steps...
Thank you
Copy link to clipboard
Copied
Try copying the files to the local computer and run it on them from there, just so we could narrow down the issue.
Copy link to clipboard
Copied
This can be done using a script, but in order to be able to do that you would need to first open the JS Console, which is not trivial to do in Reader. Is this a one-time thing, or something you need to do from time to time?
Also, the folder will have to exist in advance. The script can't create it for you.
If you only need to do it once I would just do it manually.
Copy link to clipboard
Copied
Hi @try67 ,
Thank you for your reply, a couple of questions please:
1. How to open JS Console?
2. Currently, I need it for this time, but what if I need it in the future (most likely, yes)?
3. What is the script and where should I write it?
Thank you,
Copy link to clipboard
Copied
1. I actually came up with an easy way to do it... Just open the attached file and click the button.
2+3. You can do it using this code:
var targetFolder = "/C/Temp/Files/";
for (var i in app.activeDocs) {
if (app.activeDocs[i].documentFileName=="Show JS Console.pdf") continue;
app.activeDocs[i].saveAs(targetFolder + app.activeDocs[i].documentFileName);
}
To run it, paste the code into the JS Console window, select all of it (using the mouse or keyboard) and press Ctrl+Enter. You can edit the first line of the code to point to a different folder path, but make sure to use the same file-path syntax I've used in the code above.
Edited: forgot the attachment...
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Do you have a folder created under C:\Temp\Files\ ?
Copy link to clipboard
Copied
There was no folder named Temp in C Drive, I created a folder named Temp and inside Temp, I created another folder named Files ( as in the attached picture below),
then I used the exact code as you wrote without any changes, is this correct?
Copy link to clipboard
Copied
Yes, that is correct. Do any of your files have a comma in their file-name, by any chance?
Also, I see the error is about a network... Are they located on a network drive?
Copy link to clipboard
Copied
-there no commas in any of the files,
-Yes, files are located on network drive, will that cause a problem? if so, how to solve it?
Copy link to clipboard
Copied
Appearantly it does. Not sure why, or how to solve it...
Copy link to clipboard
Copied
When I run the code, in the first cople of seconds, it tried to read the first file name then it stopped and the previous error message appeard.
Copy link to clipboard
Copied
Try copying the files to the local computer and run it on them from there, just so we could narrow down the issue.
Copy link to clipboard
Copied
I moved them to the Desktop and it worked,
Thanks indeed dear friend,
really appreciated,
Copy link to clipboard
Copied
Copy link to clipboard
Copied
This doesn't save the documents.
Copy link to clipboard
Copied
@Betty341091642vdy
thank you for your reply but I am using Adobe application on windows
Copy link to clipboard
Copied
Just want to add that all the 32 pdf documents tabs are using Adobe Acrobat Reader version 2023.006.20380 apllication not the browser...

