Hello, I have a powershell script that uses this command in a loop to convert many .docx, .pptx, and .xlsx files to pdf: “& “C:\Program Files\LibreOffice\program\soffice” --headless --convert-to pdf $inputFile --outdir $outputSubFolder”
This works great except for one small thing, occasionally there will be a .xlsx file that apparently has too many columns because I get this error popup:
Warning loading document SITEPLAN_15109_5732604_396991_(22) TM-1 .xlsx:
The data could not be loaded completely because the maximum number of columns per sheet was exceeded.
That is fine, but I have this is a script so I can start the script and then do something else while it runs. I don’t want to have to click the okay button to continue past that file. There are 2 solutions that I’m looking for, but 2 might be more of a powershell thing and less of a libre office thing.
-
How can I disable this popup and just keep going or automatically click okay or something
-
Currently I have an error .txt file that gets any error document paths written to it (0KB files, wrong extension, etc) I would like to be able to add the path to the .xlsx file that produces this popup, but am not sure how to do that.
Thanks in advance, please feel free to ask for clarifications