Opening a .docx that may contain corrupt or invalid XML data in headless mode will fail to open, However, the GUI offers a dialogue that allows the user to ignore any errors and open anyway.
I would like a commandline switch, such as `--ignore-errors` that allows the CLI to do a best effort, just as the GUI does, rather than failing with "Error: Source file could not be loaded"
Steps to Reproduce:
1. run a corrupt .docx such as one found here: https://ask.libreoffice.org/t/help-saxexception-word-document-xml-line-2-attribute-w-cstheme-redefined/60704
with the command: `soffice --headless --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --norestore --convert-to pdf <PATH_TO_FILE>`
Observe the error: `Error source file could not be loaded`
2. Open an instance of LibreOffice GUI, then run the command again.
When prompted, press "Yes" to ignore errors.
3. Command will exit successfully, and a pdf file has been created.
No ability to successfully run command without GUI
a flag such as `--ignore-errors` that will give the CLI the power to bypass such errors
User Profile Reset: No
OpenGL enabled: Yes
I believe you. Marking as NEW.
(In reply to Michael Warner from comment #2)
> I believe you. Marking as NEW.
Not opposed to the NEW status - but I fail to see how "I believe you" is a reason to mark anything as NEW by itself. The confirmation is expected to show that there is someone also having a similar issue, or who thinks it's a reasonable change/proposal, etc. It's not a matter of belief.