I have a few .docx files whose XML content appears to have some errors.
If I run a command such as:
soffice --headless --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --norestore --convert-to pdf <PATH_TO_FILE>
it will fail with:
Error: source file could not be loaded
However, if I start a running GUI instance before invoking the command, I will be presented with this dialog:
Pressing ‘Yes’ will allow the command to proceed successfully!
So what I am looking for is a commandline switch/flag that will allow me to do the same.
Searching the documentation, I was not able to find any suitable flag.
Anyone with any ideas?