This code I use to convert xls to pdf file:
/usr/bin/libreoffice --headless --convert-to pdf $path --outdir $destinationDirectory
On localhost desktop with Xorg it works ok. Document converting to one page without problems. But on server pdf file will converting on 2 pages on first page it cut right side on second we can see this cut part.
Libreoffice version on localhost:
LibreOffice 5.2.2.2.0 20m0(Build:2)
Libreoffice version on server:
LibreOffice 5.2.2.2 20m0(Build:2)