Bug 148583 - Libre is throwing error if .xls file is renamed to .xlsx
Summary: Libre is throwing error if .xls file is renamed to .xlsx
Status: CLOSED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.2.5.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-14 07:21 UTC by Vikas
Modified: 2022-04-14 09:24 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
This is .xlsx file, which gives an error while running with following command: (164.00 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2022-04-14 07:23 UTC, Vikas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas 2022-04-14 07:21:41 UTC
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
Comment 1 Vikas 2022-04-14 07:23:45 UTC
Created attachment 179546 [details]
This is .xlsx file, which gives an error while running with following command:
Comment 2 Eike Rathke 2022-04-14 09:24:12 UTC
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