I have custom dialog box based on java script code that prompts the user to enter data for an exhibit label. This label is then annotated on the pdf. Right now, the entered annotation can be deleted. I want it to be show up as permanent on the pdf page.
Just a note to be careful with the doc.flattenPages method if the document includes annotations (including links, form fields, etc.) that you may not want flattened. As the documentation shows, you can limit flattening to certain pages and non-printing annotations, which gives you the ability to flatten just the ones you want. It also doesn't work with Reader and can't be undone.