Adobe Acrobat tool to flatten form fields & digital signatures

I have an Adobe Acrobat tool that currently flattens a PDF and removes fillable form fields. But I am looking for a solution that will also flatten the PDF if it contains a digital signature (at the same time).

At this time, if I try to flatten a PDF that contains a digital signature, I get a warning message: Security settings or digital signatures in this file prevent flattening.

Below is attached JavaScript code (make sure to remove the .txt). I am seeking the assistance of adding code to allow the flattening of the PDF if it contains a digital signature. Any assistance is greatly appreciated.

Thank you for your time and assistance.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What version of Adobe Acrobat do you have?
arendt73Author Commented:
Acrobat 10 and 11.
Have you taken a look here?

I could not tell you off the top whether it will flatten with the signatures, which I know is a key requirement for you. But feel free to give it a shot.
 Acronis Global Cyber Summit 2019 in Miami

The Acronis Global Cyber Summit 2019 will be held at the Fontainebleau Miami Beach Resort on October 13–16, 2019, and it promises to be the must-attend event for IT infrastructure managers, CIOs, service providers, value-added resellers, ISVs, and developers.

arendt73Author Commented:
Thank you masnrock. Part of my script came from the Flatten Page Content Tool on located on the web site. I just need to add script to flatten digital signatures.
Still checking around.... and from I'm seeing, it looks like Acrobat won't let you. However, Nuance Power PDF will (using built in feature). I'd say download a 30 day trial and test for yourself. Otherwise you may need to print the file to PDF.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Adrian CozmaArt DirectorCommented:
Have you tried printing to PDF? I'm not a computer right now and can't check, but that might flatten everything if the correct settings are applied.
If the default settings don't work, try rendering it when printing to PDF.
Answered sufficiently
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Acrobat

From novice to tech pro — start learning today.