we are converting excel to pdf using libreOffice, in python using this command.
['/Applications/LibreOffice.app/Contents/MacOS/soffice', '--headless', '--convert-to', 'pdf', '--outdir', 'temp/upload_o3lu510o', 'temp/upload_o3lu510o/report-card.xlsx']
it is working fine for predefined page formats like A4, converting both in landscape and portrait as selected in page layout settings.
but when we are giving custom height and width to page (which sets the page layout to user), it is only converting to pdf in portrait mode, even if landscape is selected.
How can I get the required output ? I want it to convert excel to pdf also in landscape when user defined height and width are provided.