From The Document Foundation Wiki
The LibreOffice API[1] allows you to circumvent this bug and also offers other powerful file access functions.
- ↑ The LibreOffice API (Application Programming Interface) allows interaction with various programming languages.