Hello,
I am having some problems with some javascript code, namely some for\while cycles that don't work properly when the PDF is flattened.
I don't know why this is happening, but I could sort it out if there was a way to check if the PDF was flattened prior to this code execution.
Thanks in advance.
Kind regards,
Vasco