I see Undo in the WPDF_ViewCommands.pas file. I also see UnDeletePage(), but I don't see any examples of use.
Please provide example of how to undo changes (adding annotations).
Thanks.
I see Undo in the WPDF_ViewCommands.pas file. I also see UnDeletePage(), but I don't see any examples of use.
Please provide example of how to undo changes (adding annotations).
Thanks.
From a menu item execute
WPViewPDF.command(COMPDF_Ann_Undo, 2);
Thanks,
No luck. the result continually returns 1 (result=1 if disabled)
I tried enabling:
WPViewPDF1.command(COMPDF_Ann_Undo, 5); (result=0)
I tried saving first:
WPViewPDF1.command(COMPDF_Ann_Undo, 1); (result=1)
I tried undo:
WPViewPDF1.command(COMPDF_Ann_Undo, 2); (result=1)
I tried the above in multiple combinations/order
What I am trying to undo
Add a Rect to the PDF, then undo that add.
Hi,
Undo is supposed to work only for annotations, not draw objects added by user interaction with the mouse.