Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

Implement undo and redo feature for annotations 10 years 9 months ago #6684

  • bashirisonline
  • bashirisonline's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 0
I don't have Matrix object as I get the annotation as:
m_annot = page.GetAnnotFromPoint(m_annot_pos.x, m_annot_pos.y);

I have to extract Matrix object from m_annot.
How can I get it?

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

Implement undo and redo feature for annotations 10 years 9 months ago #6707

  • bashirisonline
  • bashirisonline's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 0
Hello nermeen,
Please help me to solve this problem.

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

Implement undo and redo feature for annotations 10 years 9 months ago #6720

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
You can use Annotation.GetMarkupRects() to construct the matrix,
Or if you intercept the annotation creation, you can save index1 and index2 and use www.androidpdf.mobi/documentation/javado....html#AddAnnotMarkup(int, int, int) instead

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

Implement undo and redo feature for annotations 10 years 9 months ago #6726

  • bashirisonline
  • bashirisonline's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 0
The link you have provided is dead, please resend the link.

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

Implement undo and redo feature for annotations 10 years 9 months ago #6727

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87

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

Implement undo and redo feature for annotations 10 years 8 months ago #6872

  • bashirisonline
  • bashirisonline's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 0
please provide a code snippet to do so, I am unable to get any result out of it.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum