Excel to PDF conversion on Linux splits into multiple pages

Hi,

I’m converting an Excel file to PDF using the command line.
On Windows, the conversion works correctly with the following command:

“C:\Program Files\LibreOffice\program\soffice.exe” --headless --convert-to pdf ./ ./test.xlsx

(see image)

However, on Linux, when I run this command:

/usr/bin/soffice --headless --convert-to pdf ./ ./test.xlsx

the right side of the page gets cut off, and the output is split across multiple pages.
(see image)

Do you know what might be causing this?
Is there a way to make the Linux version produce the same PDF result as on Windows?