- Posts: 814
- Thank you received: 65
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
how to undo the changes at pdf files.
10 years 7 months ago #10222
by Davide
Replied by Davide on topic how to undo the changes at pdf files.
Hi,
I have tested it with the last version of the library and even with nexus 4 the library works properly.
Can you reproduce this issue with the demo project? With all of your pdfs?
If yes, can you please send us one of them?
I have tested it with the last version of the library and even with nexus 4 the library works properly.
Can you reproduce this issue with the demo project? With all of your pdfs?
If yes, can you please send us one of them?
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 7 months ago #10227
by ankur123987
Replied by ankur123987 on topic how to undo the changes at pdf files.
Sure ,i am using this sample pdf
www.allianz.com.ar/sites/default/files/productos/Granizo.pdf .
i use this code for undo m_view.PDFUndo();
i used ink object after draw different shapes . i tried undo to go back previous shapes but its shows " No more undo" feature
www.allianz.com.ar/sites/default/files/productos/Granizo.pdf .
i use this code for undo m_view.PDFUndo();
i used ink object after draw different shapes . i tried undo to go back previous shapes but its shows " No more undo" feature
10 years 7 months ago #10260
by Davide
Replied by Davide on topic how to undo the changes at pdf files.
Hi,
now I understand what you mean.
If you tap the ink button once and you draw a line, a triangle, a square or what you want, then you tap the ink button to add it to pdf, then when you click the "undo button" it removes all these elements because they are part of the same ink.
If you tap the ink button, you draw a line, you tap the ink button to add this line to the pdf, you retap the ink button then draw a square then re-tap the button, these two elements are two differents inks and when you tap the undo button the first time it removes the square, the second time you click undo it removes the line.
now I understand what you mean.
If you tap the ink button once and you draw a line, a triangle, a square or what you want, then you tap the ink button to add it to pdf, then when you click the "undo button" it removes all these elements because they are part of the same ink.
If you tap the ink button, you draw a line, you tap the ink button to add this line to the pdf, you retap the ink button then draw a square then re-tap the button, these two elements are two differents inks and when you tap the undo button the first time it removes the square, the second time you click undo it removes the line.
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 7 months ago #10265
by ankur123987
Replied by ankur123987 on topic how to undo the changes at pdf files.
Thank you for reply.
Yes you are right..yes its work for different instance of ink but imagine a scenario where user wants to undo the last created shape without losing all drawn shapes . if i use another ink instance it will undo all shapes . or is there any way to delete particular drawn shape . . similar to onlongpressed on that shape and delete ? is it feasible?
anyway thanks a lot for understanding my issue and respond on that
Yes you are right..yes its work for different instance of ink but imagine a scenario where user wants to undo the last created shape without losing all drawn shapes . if i use another ink instance it will undo all shapes . or is there any way to delete particular drawn shape . . similar to onlongpressed on that shape and delete ? is it feasible?
anyway thanks a lot for understanding my issue and respond on that
10 years 7 months ago #10266
by Davide
Replied by Davide on topic how to undo the changes at pdf files.
Hi,
yes you can use the following method and delete the instances of the ink that you want
yes you can use the following method and delete the instances of the ink that you want
Code:
m_annot.RemoveFromPage()
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 7 months ago #10269
by ankur123987
Replied by ankur123987 on topic how to undo the changes at pdf files.
but how can i implement the onLOngpressedclicklistner at pdf . i am implement the PDFView.PDFViewListener interface but the method OnPDFSingleTapped is never called please help
Time to create page: 0.579 seconds