I have a problem with AA8 and this.flattenPages() method. I use this function with AA6 without problem, but in AA8, it seems that it uses different order in drawing of objects.
In my PDF there is an annotation (rectangle) and above it a form field (button). If I use flattenPages in AA8, the rectangle appears above the button while in AA6 it's under
Why is this happening? Can I somehow control the order?