I’m using --convert-to
to convert a document generated by a script to PDF. This document contains a table of content, but this table is unpopulated. There is the menu-item “update all indexes” which does the thing I want it to do, but I can’t do any user interaction. There might be a way to use the UpdateAllIndexes uno dispatch, but I wouldn’t know how as the documentation for these things is either missing or very well hidden.
So: how do I update the table of content of a document without user interaction?