Sorry to revamp this thread, but I'm having the same issue: I can't remove highlight annotations unless the file is loaded from disk and not from memory stream. The thing is that it works to
add annotations while pdf loaded from memory stream as documented here:
www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=54 . But I can't remove them back once added (unless I re-reopen the document/recreate the objects, but that's not an option for a simple highlight removal to reload the entire document ).
Is there any other way around this? Since I can add them
while loaded in memory
I should be able to also remove them. But no way to remove them back (RemoveFromPage / removeAnnot just returns false and it's not removed unless pdf is loaded from disk storage). I've also tried using SetCache while document loaded from memory stream, but that doesn't help; as soon as document is opened from disk tho, removing annotation will work as it should.
Thanks.