extract and save page from pdf file with javascript

With this function page 5 is extracted, but the page is not renamed and saved in the directory Can anyone help me? Thank you

var oMyDoc = this.extractPages (5)
var cPath = oMyDoc.saveAs ("/C/Users/Tabene/Documents/QUESTION.pdf");
app.execMenuItem (oMyDoc, cPath);



Read more here: https://stackoverflow.com/questions/67390336/extract-and-save-page-from-pdf-file-with-javascript

Content Attribution

This content was originally published by Tabene at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: