0

Im trying to do a discard annotations button on a page that display a pdf and has a toolbar to add annotations.

I would like to have the option of after adding some annotations, the user could revert to the original file, removing all annotations he did.

I tried finding a variable that saved a list of the annotations made but haven't found anything of sort.

Is there a way to discard all annotations made, or a place i can see the annotations that were created ?

Thought
  • 5,326
  • 7
  • 33
  • 69

1 Answers1

0

Currently there is no built in mechanism for this. Instead you would track the added annotations by their unique ID (GUID), and/or Object number (SDFObj.GetObjNum).

Note, we will be releasing a full undo/redo API in an upcoming release, but it is still some months away. If you can, perhaps you could postpone this until our API is available.

Ryan
  • 2,473
  • 1
  • 11
  • 14
  • I ended up creating a copy of original document, and replacing annotated document If the discard button was pressed – Thought May 19 '16 at 22:25