Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Command line Conversion Options

Hi Guys,

Can you please tell me if the LibreOffice command line conversion has ability to fit the excel file to one page only ? I am currently using libreoffice to convert the excel files that we receive from outside vendor to pdf before loading it to our database. Unfortunately sometimes that the length of columns in the file are more than regular Print Size and they get moved over to second page. This causes the load process to fail. The command I am using is as below.

sudo libreoffice --headless --convert-to pdf --outdir ../excel/ filename.xls

I know you can chose Scaling Options if you are using GUI but we run this process during night and I want to avoid any human interaction.