Bug 82265 - convert-to does not work in LibreOffice 4.3.0.4 for documents with multiline paragraphs
Summary: convert-to does not work in LibreOffice 4.3.0.4 for documents with multiline ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: notBibisectable, regression
Depends on:
Blocks:
 
Reported: 2014-08-06 20:34 UTC by Dieter Schmeer
Modified: 2015-12-17 10:57 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Used test document (10.51 KB, application/vnd.oasis.opendocument.text)
2014-08-06 20:34 UTC, Dieter Schmeer
Details
File with error information (3.67 KB, text/xml)
2014-08-06 20:35 UTC, Dieter Schmeer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dieter Schmeer 2014-08-06 20:34:34 UTC
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.
Comment 1 Dieter Schmeer 2014-08-06 20:35:26 UTC
Created attachment 104180 [details]
File with error information
Comment 2 Joel Madero 2014-08-07 04:53:30 UTC
Just tested with:
Ubuntu 14.04 x64
LibreOffice 4.3.0.4

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.
Comment 3 Dieter Schmeer 2014-08-07 05:39:07 UTC
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?
Comment 4 michaelp 2014-08-14 22:27:06 UTC
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 4.3.0.4 and 4.3.1.1 (ie the release candidate) are both failing.
Comment 5 Robinson Tryon (qubit) 2014-08-15 03:14:03 UTC
(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 4.3.0.4 and 4.3.1.1 (ie the release
> candidate) are both failing.

Hi michael,
On what OS are you testing?
Comment 6 michaelp 2014-08-17 23:12:15 UTC
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)
Comment 7 pablo.olmos 2014-08-28 14:52:43 UTC
I am having the same problem while trying to convert a docx file on Windows 7 (64bit with service pack 1) with version 4.3.1.2: Headless conversion to pdf is failing silently (ie not outputting any errors, but not generating the pdf).
Comment 8 Florian Reisinger 2014-08-28 16:31:03 UTC
Working with 4.3.0.4 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
Comment 9 michaelp 2014-09-02 01:40:13 UTC
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.
Comment 10 tommy27 2015-01-04 15:13:29 UTC
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 4.3.5.2 release
Comment 11 Dieter Schmeer 2015-01-17 23:16:37 UTC
Update for newer LibreOffice Versions 4.3.5.2 and 4.4.0.2:
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.
Comment 12 michaelp 2015-05-14 04:21:17 UTC
I just tried again with 4.4.3.2 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.
Comment 13 Florian Reisinger 2015-05-14 06:15:18 UTC
As per comment before this one
Comment 14 michaelp 2015-05-14 22:14:41 UTC
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 $?
0
Comment 15 Robinson Tryon (qubit) 2015-12-17 10:57:50 UTC
Migrating Whiteboard tags to Keywords: (notBibisectable)
[NinjaEdit]