I'm not sure I quite understand what the Doc.flattenPages() method actually does. Perhaps I haven't been using a too much complex document yet. I just don't know what to expect from making this function call.
Can someone please explain to me what the Doc.flattenPages() method does in particular?
It converts all "interactive" objects in the file (comments, form fields, links) to static PDF contents.