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

How to create a button that flattens form fields

Enthusiast ,
Jan 14, 2023 Jan 14, 2023

Copy link to clipboard

Copied

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

Views

295

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Jan 14, 2023 Jan 14, 2023

Have it execute the following JavaScript code:

this.flattenPages();

Votes

Translate

Translate
Community Expert ,
Jan 14, 2023 Jan 14, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

They will use Acrobat, not Reader.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Have it execute the following JavaScript code:

this.flattenPages();

Votes

Translate

Translate

Report

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