Description: am using the following command to to convert .xls file to pdf: soffice.com --headless --convert-to pdf “D:\InputFiles\word2pdf\test.xls” --outdir D:\InputFiles\word2pdf The above command is successfully converting that file to pdf. But when I am changing its extension to .xlsx and executing the same command getting an error. Any idea why it is happening? Both files are opening in LibreOffice. Steps to Reproduce: 1.Run command provided in description to reproduce the issue. 2. 3. Actual Results: Error: source file could not be loaded Expected Results: File should get converted into pdf. Reproducible: Always User Profile Reset: No Additional Info: NA
Created attachment 179546 [details] This is .xlsx file, which gives an error while running with following command:
This is a BIFF binary .xls file and not an OOXML .xlsx file. Opening files takes different approaches for those. Just do not rename the extension to something that does not suit the content. Not a bug. See also https://ask.libreoffice.org/t/libre-is-throwing-error-if-xls-file-is-renamed-to-xlsx/76368