How to convert to PDF through command and fit content to the width of the page?

Hello, I am using libreoffice to convert an excel file, however the content is split into two pages.

First of all I tried using the program in ubuntu and If I export using these settings it works great:

However if I use the command line to export the same document the content is split and but in multiple pages because it is too wide.

What should I do to fix it?