I am using following command to convert xlsx to pdf:
/usr/lib/libreoffice/program/soffice --headless --convert-to pdf:calc_pdf_Export --outdir test/ gor_convert_3.xlsx
I have two separate systems and in both the systems I get different number of pages through this command. It is because in one system it is converting to pdf using A4 size & in another using letter size. I have checked files in /etc/libreoffice in both the systems and they are same. I also copied user config files (~/.config/libreoffice/4) from system 1 to system 2 but still the output is different. Do I need to restart the libreoffice to get the change to take place or is there any other config file where this info is stored? Thanks for your help.