Headless: update section?

Hi there,

I have a writer document that links in a section to another document. This document should be converted to PDF in a headless system.

However, prior to converting to PDF, the section in the document should be updated, because the linked document may have changed.

Is this possible in a purely headless environment?