File looses formatting converting .xls or .xlsx to .pdf using libreoffice in alpine linux

What are the filters available for .xlsx, .xls file conversion to .pdf and how to use them using libreoffice-convert.
Some examples would be greatly appreciated.
The challenge is that while converting .xls or .xlsx file the width of the file changes and hence the formatting is not preserved whiled converting it to .pdf. Is there a way to pass the width setting.
I am using npm library libreoffice-convert. The library mentions to use the filters from libreoffice documentation but there is no filter to set the width.

Kindly, help.
Thank you.

It could be a compatibility problem between
ODS and XLS / XLSX .

Basically:

Recommendation for clean working with LibreOffice when different Office programs are used.
Always create and save your files in LibreOffice and save them in ODF format (ODT, ODS, etc.).
Always keep these files as their source.

From ODS you can export directly to PDF.

If you need other formats for distribution to partners, you can open an ODF file and save and distribute another format with ″ Save as… ″.
This way, you always have working files available in your system environment.

See:

Edit different file formats in LibreOffice


Please report the behavior as a bug in Bugzilla .

See also:

How to Report Bugs in LibreOffice .

Please post the link from the bug here.
format: tdf#nnnnnn (use only the number, not the link)
To do this, edit your initial question. Thank you.