Created attachment 104179 [details]
Used test document
Call the following on command line:
"c:\Program Files (x86)\LibreOffice 4\program\swriter.exe" --headless --convert-to doc "test3.odt"
No PDF file is generated, only the file WERAB7E.tmp.WERInternalMetadata.xml.
In Version 4.2.x.x, this still worked.
It seems the problem occurs for all documents containing a paragraph which is longer than one line. If you shorten all paragraphs to have only one line it works.
Created attachment 104180 [details]
File with error information
Just tested with:
Ubuntu 14.04 x64
I cannot confirm - converts fine.
Note: "c:\Program Files (x86)\LibreOffice 4\program\swriter.exe" --headless --convert-to doc "test3.odt" converts to a DOC not a pdf.
To convert to a PDF you need to replace "doc" with "pdf" in the above line.
Sorry, "doc" was a copy and paste error, because I also tried converting to doc.
On my Windows installation, neither pdf nor doc works, both conversions fail.
Can anybody please try to confirm this on Windows?
I seem to be experiencing the same problem. Headless conversion to pdf is failing silently (ie not outputting any errors, but not generating the pdf). LO 3.6 and 4.2 are working, but 188.8.131.52 and 184.108.40.206 (ie the release candidate) are both failing.
(In reply to comment #4)
> I seem to be experiencing the same problem. Headless conversion to pdf is
> failing silently (ie not outputting any errors, but not generating the pdf).
> LO 3.6 and 4.2 are working, but 220.127.116.11 and 18.104.22.168 (ie the release
> candidate) are both failing.
On what OS are you testing?
I'm using Linux, but our clients are also having problems in Windows. The Linux distribution is a bit old - it's running under Ubuntu Lucid (10.04)
I am having the same problem while trying to convert a docx file on Windows 7 (64bit with service pack 1) with version 22.214.171.124: Headless conversion to pdf is failing silently (ie not outputting any errors, but not generating the pdf).
Working with 126.96.36.199 and your test document
Can you enter "echo Exit Code is %errorlevel%" (without the ").
If the exit code is "9009" the file does not exist (at least in my case here)
So cannot reproduce
On Linux, I get a result code of 0, but nothing has happened. It seems to exit with 0 regardless of whether the source file (ie the file I'm trying to convert) exists or not.
status NEW since confirmations in comment 4 and comment 7
however it would be interesting to know from affected users if the issue persists in latest 188.8.131.52 release
Update for newer LibreOffice Versions 184.108.40.206 and 220.127.116.11:
The command line
"c:\Program Files (x86)\LibreOffice 4\program\swriter.exe" --headless --convert-to pdf "test3.odt"
does still not create a pdf file, the is no output file at all, the command silently fails.
echo Exit Code is %errorlevel%
outputs an exit code of 0.
If I remove some letters in test3.odt until there is only one line of text it works fine.
OS is Windows 7 x64 with all current updates installed. Version 4.2.8 still works fine.
I just tried again with 18.104.22.168 on Linux and it worked to convert an odt to pdf!
I'm not sure if there's something in our installation that changed or if it was fixed in LO, but it's probably worth while for others who were having this problem to try out that version.
As per comment before this one
BTW - it is still exiting with a result code of 0 on Linux, though it is now nicely printing an error to stderr. Not an issue for my usage, but may be of concern to others. In the example below, the file "blah.odt" does not exist:
./libreoffice4.4/program/swriter --headless --convert-to pdf blah.odt
Error: source file could not be loaded
# echo $?
Migrating Whiteboard tags to Keywords: (notBibisectable)