melutovich has asked for the wisdom of the Perl Monks concerning the following question:

How to update a table of content(TOC) of an open office document preferably using OpenOffice::OODoc, in Writer on the TOC one can click right and select "Update index", how do I do this within perl?
  • Comment on update table of content using OpenOffice::OODoc

Replies are listed 'Best First'.
Re: update table of content using OpenOffice::OODoc
by GrandFather (Saint) on Aug 02, 2019 at 05:16 UTC

    What have you tried and how did it fail?

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
      I have not tried anything because all the time I had spent searching has not helped find a solution, hence I asked. After I asked the question, I found what I'm currently leaning toward is to use libreoffice in headless mode and creating a macro to run execute ".uno:UpdateAllIndexes", but still open to other solutions. To add in case someone searches and finds this response. The best link with the libreoffice headless macro approach is like