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

How to create a button that flattens form fields

Advocate ,
Jan 14, 2023 Jan 14, 2023

In order to make it easy and convenient for users to flatten form fields in a PDF, I want to place a button in a PDF that flattens all form fields.

Can anyone tell me how to create such a button?

TOPICS
How to , PDF forms
1.8K
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 ,
Jan 14, 2023 Jan 14, 2023
LATEST

Have it execute the following JavaScript code:

this.flattenPages();

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 ,
Jan 14, 2023 Jan 14, 2023

Will the users be using Acrobat to view this file, or will they use the free Reader? Because only Acrobat can actually flatten form fields. The best that can be done with Reader is to set them as read-only, or to lock them using a digital signature field.

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
Advocate ,
Jan 14, 2023 Jan 14, 2023

They will use Acrobat, not Reader.

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
Advocate ,
Jan 14, 2023 Jan 14, 2023

I'm the one creating the form. The person that will be using the form has Acrobat. 

I know how to create buttons, I just don't know how to include a "flatten form fields" action in the button.

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 ,
Jan 14, 2023 Jan 14, 2023
LATEST

Have it execute the following JavaScript code:

this.flattenPages();

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