Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
IPXV_Document.OperationHistory.BeginMacro ...
loop through entries
if something do IOperation_1 for entry
if something_else do IOperation_2 for entry
do IOperation_3 for entry
IPXV_Document.OperationHistory.EndMacro ...
In short: for some entry all three IOperations can get executed, for another maybe only IOperation_3.
Problem: the Undo action will only undo IOperation_3 (for all entries).
Expected: all executed IOperations undone for the entry for all entries.
So, the question: how to ensure Undo/Redo works for a set of different IOperations ?
IPXV_Document.OperationHistory.BeginMacro ...
loop through entries
do IOperation_1 for entry
do IOperation_2 for entry
do IOperation_3 for entry
IPXV_Document.OperationHistory.EndMacro ...
Upon "Undo" only IOperation_3 is undone (for all entries).
If of any value, the 3 operations done are: op.annot.setData, op.annots.setProps and op.document.replaceFonts