How to make it rapid when calling libreoffice.exe command to convert an Excel to PDF

Any advice or reference is appreciated very much.

Not really sure what you’re trying to ask. Do you mean converting Excel to PDF from the command line? And when you say “make it rapid” do you mean typing out the command or how long it takes LibreOffice to finish the task?

If you want to shorten the command you have to type you’ll want to create a shell script with all the options included that accepts a filename as an argument. How you do this will depend on which operating system you are using which you haven’t indicated.

1 Like

Thank you. I’m running such a command like the following:
C:\Program Files\LibreOffice\program\soffice.exe --headless --convert-to pdf myFile.xlsx
but the speed of conversion is not satisfying enough.
I hope to be advised on how to improve the performance of such converting.

Can you run this to show the start and end time for the command? Then copy and paste the output here?

cmd /v:on /c "echo !time! & ("C:\Program Files\LibreOffice\program\soffice.exe" --headless --convert-to pdf myFile.xlsx) & echo !time!"

And also how large is your *.xlsx file?