It is actually impossible to do via javascript. The old method was deprecated:
Here's how:
- In Acrobat Professional, open the JavaScript console (Ctrl-J).
- Type in this.flattenPages(); and press enter.'
I have not been able to get this to work.
THere is another problem which is that not all PDF viewers support all functions of PDF which is why it is best done server side. If you want to buy a server to do this, LiveCycle ES has this. We also have
a prototype of our own. The idea is that you would add a submit button which would call our server, flatten it etc. Contact me off list as we (Uberity) do not wish to advertise of push our wares on this list. Alternatively, Avoka, Cardinal, Carasoft, Ensemble,
4Point and others all possibly have other workarounds for this.
Duane
COO and Director
Uberity Technology Corporation
"LiveCycle ES and Mobile Specialists"
@uberity @duanechaos