I’ve attached a document. In it are two bookmarks, “OriginalBookmark” and "InsertHere"
On that document, the following code is executed (this is in ColdFusion):
<cfif docBuilder.moveToBookmark(“InsertHere”)>I’ve also attached the output document.
The results appear correct; however, the other bookmark, “OriginalBookmark” is missing.
It seems like the getCurrentParagraph().remove() statement not only removes the text following the newly-inserted line from writeln() – as intended – but it also goes back and removes the preceding bookmark, prior to the new line. I don’t think this is proper behavior.