Is it possible to upgrade an existing toc using apache poi / Word SDK / other api? Or is there a workaround? For instance. removing the old toc, then grab all the headers and add them to the new toc or paste them in the right place without deleting them at the beginning.
Edit: I work with .doc, but I can change it to .docx, so that doesn't really matter.
source
share