Our flatten is occurring on an RFI from the well-established GC. We've been working with PDF's since their existence. This is the first time we've experienced this.
What does javascript have to do with this? Even if you explain it, I still may not understand. I'm a simple operator. Out side of Excel, I don't know much programming language, but, give it a brief, simple explanation, if you will.
I know the command is not working, because, after execution, I can still edit the text that I entered/added to the PDF document. (I must be misunderstanding something that you would ask that question.)