By: schurtertom
Date: 2016-03-01
Time: 09:26
|
generated docx with opentbs converted by unoconv and libreoffice
For some reason I am expecting a strange behaviour. When I am merging my docx template with opentbs, it works all fine and it looks correct in the generated docx.
But now I need to convert the docx into a pdf where I am using unoconv and libreoffice on mac OS X 10.11.
when I do this, all strings with multiple lines (which are displayed correctly in the docx) will be displayed as single line in the pdf. Also if I open the generated docx with libreoffice, all multi line strings will be displayed as single line.
I figured out, that I can use ;strconv=no. This will then do exactly the opposite. All multi line strings in the docx will be displayed as single line, but in libreoffice or converting to pdf with unoconv they are displayed correctly with multi lines.
anyone has a solution for this problem?
|
By: Skrol29
Date: 2016-03-11
Time: 21:33
|
Re: generated docx with opentbs converted by unoconv and libreoffice
I cannot help on this, it seems to be a problem with unoconv.
|
By: schurtertom
Date: 2016-03-14
Time: 11:43
|
Re: generated docx with opentbs converted by unoconv and libreoffice
Hmm I am not that sure it is a problem with uniconv.
Since when I generate the docx, I can open in Microsoft Word perfectly, but when I open the same document with LibreOffice I have the mention problem.
Mein Problem is:
Multiline Text with \n will be parsed perfectly and will be displayed correctly in Microsoft Word with separate lines; but when I open the same document with LibreOffice, it will display all text in one single line.
BUT, if I open in Microsoft Word, and then manually create new lines by hitting the Enter key, also Libre Office will display the text correctly.
So in the end, I guess tbs is missing some mandatory wrapping?!
Do you have any idea how I could get this working?
Thanks
|
By: Skrol29
Date: 2016-03-14
Time: 22:43
|
Re: generated docx with opentbs converted by unoconv and libreoffice
I think Ms Word has a better support for DOCX than Libre Office (or OpenOffice).
Furthermore, it is not rare that Libre Office does not open a DOCX with the same formating.
I will have a look at this special point with line breaks, but I guess it is a problem of full support between softwares.
|
By: schurtertom
Date: 2016-03-14
Time: 22:51
|
Re: generated docx with opentbs converted by unoconv and libreoffice
Thank you!
The Problem is i need to have the generated docx as PDF in the end and unoconv & libreoffice has the best support on it to generate a pdf out of a docx...
|
By: Skrol29
Date: 2016-03-15
Time: 00:16
|
Re: generated docx with opentbs converted by unoconv and libreoffice
Hi,
Thank for had underlined this problem.
Here is a quick walkaround for now.
Just after method LoadTemplate(), replace property OtbsConvBr like this :
$TBS->LoadTemplate(my_doc.docx);
$TBS->OtbsConvBr = '</w:t><w:br/><w:t>';
|
This will be fixed in the next version of OpenTBS.
|
By: schurtertom
Date: 2016-03-15
Time: 10:32
|
Re: generated docx with opentbs converted by unoconv and libreoffice
Hi,
thank you very much for this workaround!!
This works perfectly now!
Cheers
|
|
Posting in progress.
Please wait...
|