Copy link to clipboard
Copied
Hi,
My C++ PLN creates large complex documents (100-400 pages on average) and I get the impression that this is being slowed down by the maintenance of te undo stack and the recovery folder.
Is there a way in the SDK to turn these off completely ?
Very best regards,
Olivier
For command history you can look at the ICmdHistory interface it has the Enable and Disable methods that should be of interest to you.
-Manan
Copy link to clipboard
Copied
If you been working on an InDesign document for some time it's best occasionally to save it as an IDML document to clear out the crud that builds up over time and that can cause corruption and slow down the system.
Copy link to clipboard
Copied
For command history you can look at the ICmdHistory interface it has the Enable and Disable methods that should be of interest to you.
-Manan
Copy link to clipboard
Copied
Manan, I think command sequences already disable the history. Olivier is talking a lower level.
Olivier, have you already tried the undo modes from scripting - wrap your plug-in code in one script method 😉
If that fails, there are plenty methods in IDataBase. Just search for "Internal use only" to make you drooling.
Some involve the protection level and are even without that comment. I haven't used them on regular publication files, but on throw-away files similar to scrap dbs. It may also be worth to have a look at the approaches taken by InDesign Server.
Copy link to clipboard
Copied
Thank you for the tip, Dirk.
As mentioned to Manan, it turns out that the issue was related to pages reflowing.
Copy link to clipboard
Copied
Thank you for the tip, Manan.
It turns out that the issue was related to pages reflowing.