Skip to main content
doobeedoobee
Known Participant
April 15, 2017
Question

How do I save a file with JS

  • April 15, 2017
  • 2 replies
  • 499 views

Hi. I have a PDF with a script that opens another file, changes that file's serial number and prints the file. How do I save the file so the new serial number is saved? Thanks very much

This topic has been closed for replies.

2 replies

Karl Heinz  Kremer
Community Expert
Community Expert
April 15, 2017

Take a look at this tutorial, it explains how to save PDF files using JavaScript: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

You will have to install a folder level script.

doobeedoobee
Known Participant
April 15, 2017

Thanks Karl. I'll work through it

Bernd Alheit
Community Expert
Community Expert
April 15, 2017

Use the method saveAs.

doobeedoobee
Known Participant
April 15, 2017

Thanks. I'll try that. I assume you mean that I just save it using the same name and that there's a way of doing it without a dialog box confirming you want to overwrite the pre-existing file