Implement undo and redo feature for annotations - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: Implement undo and redo feature for annotations

Implement undo and redo feature for annotations 4 years 3 months ago #6673

  • bashirisonline
  • bashirisonline's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 35
  • Karma: 1
  • Thank you received: 0
Hi,
I am implementing Undo and Redo functionality for annotations, I am able to implement undo functionality using annot.RemoveFromPage() API.
My problem is that how can I implement Redo functionality.

Please Log in or Create an account to join the conversation.

Implement undo and redo feature for annotations 4 years 3 months ago #6675

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
You need to implement it yourself by keeping track of the annotations info (pageno, rect, ...)
You can save this info in a database if you want.

Please Log in or Create an account to join the conversation.

Implement undo and redo feature for annotations 4 years 3 months ago #6676

  • bashirisonline
  • bashirisonline's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 35
  • Karma: 1
  • Thank you received: 0
Can you please provide some information on what are the necessary parameters to be kept to redo an annotation.
for example:
for text highlight what details are required?
for text underline what details are required?
for ink what details are required?

Please Log in or Create an account to join the conversation.

Implement undo and redo feature for annotations 4 years 3 months ago #6678

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Same parameters needed to create a new annotation
www.androidpdf.mobi/documentation/javado....html#AddAnnotMarkup (int, int, int)
http://www.androidpdf.mobi/documentation/javadocs/com/radaee/pdf/Page.html#AddAnnotMarkup(com.radaee.pdf.Matrix, float[], int)
http://www.androidpdf.mobi/documentation/javadocs/com/radaee/pdf/Page.html#AddAnnotInk(com.radaee.pdf.Ink)
http://www.androidpdf.mobi/documentation/javadocs/com/radaee/pdf/Page.html#AddAnnotInk(com.radaee.pdf.Matrix, com.radaee.pdf.Ink, float, float)

Please Log in or Create an account to join the conversation.

Last edit: by marcoP.

Implement undo and redo feature for annotations 4 years 3 months ago #6679

  • bashirisonline
  • bashirisonline's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 35
  • Karma: 1
  • Thank you received: 0
Ok, then How can I get Matrix of an annotation?

Please Log in or Create an account to join the conversation.

Implement undo and redo feature for annotations 4 years 3 months ago #6680

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
it depends how you created them in the first place, you can save the info while adding the annotation, at this moment all the info are available

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum