Should i use Document.Flatten() or Document.Forms.Flatten()
Both methods perform the same operations but I would recommend you to please try using Document.Form.Flatten(); method. In case you encounter any issue, please feel free to contact.
I get error when i use Document.Forms.Flatten() "At most 4 elements (for any collection) can be viewed in evaluation mode."
The reason you got above specified error message is because your license was not initialized. This message appears when using the product in trial/un-licensed mode.
We are sorry for your inconvenience.