Skip to main content
Participant
October 29, 2020
Question

save file to specific location with variable save name

  • October 29, 2020
  • 2 replies
  • 462 views

I have been reading up on this quite a lot and have found ones that give answers but I am still quite confused on exactly how to accomplish this. Even with the answers given I am still not sure where to even start. I am reletively new to working with acrobat and using java with it. 

 

I am trying to make an action button lock the text fields in the document and then save it in the alotted location and have the name "xyz.date". I found the way to lock the fields in the document and that is working well, but I am really struggling to understand how to get the file to save somewhere on its own. 

 

Any step by step of exactly how to do this would be much appreciated! Thank you!

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
October 29, 2020

Did you see this tutorial? https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

It's old, but still relevant...

BarlaeDC
Community Expert
Community Expert
October 29, 2020

Hi,

 

First point, many thanks for doing your own research 😄 and second point it is JavaScript, not Java two very different languages.

 

You are looking for the SaveAs command in the documentation, however, this command comes with a lot of caveates :D.

 

Documentation is here - https://www.adobe.com/devnet/acrobat/documentation.html

 

And the document you are looking for is AcrobatDC_js_api_reference.pdf

 

Hope this helps

 

Malcolm