Ask Your Question

--convert-to pdf Windows

asked 2016-02-08 15:18:36 +0200

magnan gravatar image

updated 2016-03-09 21:22:46 +0200

Alex Kemp gravatar image


I am trying to use the --headless conversion on windows 10 using Libreoffice 4.4. Here is one of the different combination I have tried

C:\Program Files (x86)\LibreOffice 4\program>soffice.exe --headless -convert-to pdf:writer_pdf_Export --outdir "C:\Home\install" "z:\Desktop\ALP.docx"

The command returns with no error message and no pdf file is produced. It seems like there is a missing dependency that is not documented. I do have Java installed.

I searched all the forums and documentation but didn't find my answer.

Thank you if anybody can help me on this.

edit retag flag offensive close merge delete


Try soffice.exe "z:\Desktop\ALP.docx", which should open the document in the GUI. Does this work? Can you export it to PDF via the GUI? If one of these steps fails (possibly producing an error message) that will help you narrow down the issue.

stanton gravatar imagestanton ( 2017-02-01 13:14:48 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2018-12-07 13:46:03 +0200

BigRAl gravatar image

The convert switch is --convert to (note the two dashes).

--headless is not needed, as it is implied when using --convert to.

edit flag offensive delete link more

answered 2018-12-07 13:23:54 +0200

I have the same problem if i run the command from limited user in windows 7 "C:\Program Files (x86)\LibreOffice 4\program\soffice.exe" --headless -convert-to pdf:writer_pdf_Export --outdir C:\PDF C:\PDF\53620_STAMPAD.RTF

nothing happens

but il i run command as administrator work

edit flag offensive delete link more


I have trying to convert xlsx to pdf, and from GUI i can export it. even then command by passing the input file, open the libreoffice GUI with the input file option to open .. but it didn't convert it to PDF

amey6991 gravatar imageamey6991 ( 2018-12-25 05:10:13 +0200 )edit
Login/Signup to Answer

Question Tools



Asked: 2016-02-08 15:18:36 +0200

Seen: 1,860 times

Last updated: Dec 07 '18