- Posts: 35
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Implement undo and redo feature for annotations
- bashirisonline
-
Topic Author
- Offline
- Junior Member
-
Less
More
IP: 192.168.0.71
11 years 7 months ago #6673
by bashirisonline
Implement undo and redo feature for annotations was created by bashirisonline
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.
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.
IP: 192.168.0.158
11 years 7 months ago #6675
by nermeen
Replied by nermeen on topic Implement undo and redo feature for annotations
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.
You can save this info in a database if you want.
- bashirisonline
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 35
- Thank you received: 0
IP: 192.168.0.71
11 years 7 months ago #6676
by bashirisonline
Replied by bashirisonline on topic Implement undo and redo feature for annotations
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?
for example:
for text highlight what details are required?
for text underline what details are required?
for ink what details are required?
IP: 192.168.0.158
11 years 7 months ago - 11 years 7 months ago #6678
by nermeen
Replied by nermeen on topic Implement undo and redo feature for annotations
Same parameters needed to create a new annotation
www.androidpdf.mobi/documentation/javado....html#AddAnnotMarkup (int, int, int)
[], int)
www.androidpdf.mobi/documentation/javado...(com.radaee.pdf.Ink)
www.androidpdf.mobi/documentation/javado....html#AddAnnotMarkup (int, int, int)
[], int)
www.androidpdf.mobi/documentation/javado...(com.radaee.pdf.Ink)
Last edit: 11 years 7 months ago by marcoP.
- bashirisonline
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 35
- Thank you received: 0
IP: 192.168.0.71
11 years 7 months ago #6679
by bashirisonline
Replied by bashirisonline on topic Implement undo and redo feature for annotations
Ok, then How can I get Matrix of an annotation?
IP: 192.168.0.158
11 years 7 months ago #6680
by nermeen
Replied by nermeen on topic Implement undo and redo feature for annotations
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
Time to create page: 0.705 seconds