Skip to main content
Participant
March 25, 2025
Answered

Help automating actions?

  • March 25, 2025
  • 2 replies
  • 349 views

Hi everyone, 

 

I am looking for a bit of help if some kind soul wouldn't mind? 

 

I am trying to create a form for work; the form is stored centrally with members of the team all filling in the form, printing or emailing it, then closing it. In an ideal world I'd like to automated the form with a button which would flatten the PDF, save a copy to the user's desktop, and then close the original form without keeping their inputs in the source form. 

 

Is this possible or am I hoping for too much? 

 

Thank you in advance to everyone who helps.

 

Mark

 

P.S. I'm on Adobe Acrobat Pro

Correct answer PDF Automation Station

If everyone has Acrobat Pro, you can flatten.  You can't flatten with Reader.  If you want to save silently (without further user interaction) you will need a trusted function in folder level script on each computer, or a custom menu item.  If you don't need to save silently you can use:

this.flattenPages(); //flattens the file

app.execMenuItem("SaveAs");//activates save as

2 replies

PDF Automation Station
Community Expert
Community Expert
March 25, 2025

If everyone has Acrobat Pro, you can flatten.  You can't flatten with Reader.  If you want to save silently (without further user interaction) you will need a trusted function in folder level script on each computer, or a custom menu item.  If you don't need to save silently you can use:

this.flattenPages(); //flattens the file

app.execMenuItem("SaveAs");//activates save as

Participant
April 10, 2025

Thanks very much. I don't have access to each computer (remote workers) so I'll just go with local saving by each user instead. 

 

Thanks again.

try67
Community Expert
Community Expert
March 25, 2025

- Are the users opening the form in Acrobat or in Reader?

- Can you install a script file on the local computer of each user?

Participant
April 10, 2025

Hi Try67 

 

Thanks for coming back to me. They'll all be opening with Reader rather than Acrobat and I won't be able to install script on each computer. 

 

I think it's probably simpler just to allow local saving. 

 

Thanks so much for your reply.