Skip to main content
Inspiring
January 10, 2024
Question

Extract first page from a folder of pdfs, save the first page to new location

  • January 10, 2024
  • 1 reply
  • 484 views

Hello,

As the title says: I have a folder with many many odfs. I need to extract the first page from each document, then save the extracted page to a new folder, and close the pdf without saving.

 

I know I had a script tha did the above, in fact I found it.

But it no longer works.

I must be doing something wrong... can someone help?

 

this.extractPages(0,0,"C:\Users\me\Desktop\Processed Files" + this.documentFileName);

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
January 10, 2024

The file-path syntax is incorrect. Try this instead:

this.extractPages(0,0,"/C/Users/me/Desktop/Processed Files/" + this.documentFileName);

You can run it in an Action on multiple files to process them all. However, the folder you're saving the files to must exist in advance. JS can't create it for you.