Skip to main content
kima74036004
Participant
Jan 6, 2016 2:13 PM UTC
Answered

How to 'Flatten' in Adobe Acrobat Pro DC

We recently purchased Adobe Acrobat Pro DC and I'm trying to figure out how to take a document that I added a stamp to and flatten it so our users cannot delete the stamp from it.  I have found the 'Flatten' option but it is greyed out.  The only option in the menu available is 'Import as Layer'.  How do I enable the 'Flatten' feature?  In previous versions, I used a java script to flatten when the option was not available.

Thom Parker
Thom ParkerCorrect answer
Community Expert
Apr 28, 2025 4:50 PM UTC

The easy thing to do would be to download the free flatten tool linked above. It includes a page range.

Or the next easiest method is to run this code in the Console Window:

 

this.flattenPages(nPage);

 

where you replace "nPage" with the page number minus 1, because page numbers in the JavaScript model start at 0. 

 

Here's a video turorial on the Console:

https://www.pdfscripting.com/public/images/video/AcroJSIntro/AcroJSIntro_ConsoleWindow.cfm

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often

36 replies

Participant
Feb 11, 2016 5:29 PM UTC

Can someone expand on this script?  We are moving to DC in March and I know this is going to come up so want to be prepared.  Is there a way to do it in DC?

Translate
try67
Community Expert
Community Expert
Feb 11, 2016 5:52 PM UTC

The script is this:

this.flattenPages();

It works in Acrobat DC.

Translate
Known Participant
Nov 27, 2018 4:33 PM UTC

try67, the script won't work once I save as a reader extended PDF.

Dave W.

Translate
try67
Community Expert
Community Expert
Jan 6, 2016 2:45 PM UTC

Why not use a script in that version as well? It's the easiest and fastest way.

Translate
kima74036004
Participant
Jan 6, 2016 3:03 PM UTC

I'm adding it back in to give it a try and see what happens.  Thanks!

Translate