Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help automating actions?

New Here ,
Mar 25, 2025 Mar 25, 2025

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

TOPICS
Create PDFs , How to , JavaScript , PDF , PDF forms , Print and prepress
396
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Mar 25, 2025 Mar 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

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 25, 2025 Mar 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 10, 2025 Apr 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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 25, 2025 Mar 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 10, 2025 Apr 10, 2025
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines