Created attachment 57020 [details] libreoffice-bugs.org
Created attachment 57021 [details] libreoffice-bugs.odt
Created attachment 57023 [details] libreoffice-bugs.docx
Created attachment 57024 [details] libreoffice-bugs.doc
Created attachment 57025 [details] libreoffice-bugs.pdf
*scratch* ========= Author: Jambunathan K <kjambunathan@gmail.com> Date: 2012-02-14 Tue Table of Contents ================= 1 Summary 2 Version information 3 Details of the attachment and the issues there of 3.1 libreoffice-bugs.org 3.2 libreoffice-bugs.odt 3.2.1 Issues with ODT file 3.3 libreoffice-bugs.pdf 3.3.1 Issues with PDF file 3.4 libreoffice-bugs.doc 3.4.1 Issues with DOC file 3.5 libreoffice-bugs.docx 3.5.1 Issues with DOCX export 1 Summary ---------- Various issues with converting from an odt file to other formats using the LibreOffice command-line option "--convert-to". 2 Version information ---------------------- Tested with LibreOffice 3.4.5 OOO340m1 (Build:502) Windows build. 3 Details of the attachment and the issues there of ---------------------------------------------------- 3.1 libreoffice-bugs.org ========================= Input file in Emacs/Orgmode format. See [http://orgmode.org/]. Attached for my own reference. 3.2 libreoffice-bugs.odt ========================= ODT file created by the Emacs/Orgmode exporter. See [http://orgmode.org/manual/index.html] and [http://orgmode.org/manual/OpenDocument-Text-export.html#OpenDocument-Text-export]. This file used as the input file for all the conversion operation listed below. 3.2.1 Issues with ODT file ~~~~~~~~~~~~~~~~~~~~~~~~~~~ The data-style-name option is not honored. Irrespective of what style name I choose, the date is rendered the same way - "14/02/12" - in the GUI. <text:date style:data-style-name="N75" text:date-value="2012-02-14T00:00:00+05:30"> 14 Feb 2012 </text:date> 3.3 libreoffice-bugs.pdf ========================= Command used to produce this pdf file. Executing soffice --headless --convert-to pdf --outdir tests/ tests/libreoffice-bugs.odt convert tests\libreoffice-bugs.odt -> tests\libreoffice-bugs.pdf using writer_pdf_Export 3.3.1 Issues with PDF file ~~~~~~~~~~~~~~~~~~~~~~~~~~~ None. Looks good. 3.4 libreoffice-bugs.doc ========================= Executing soffice --headless --convert-to doc --outdir tests/ tests/libreoffice-bugs.odt convert tests\libreoffice-bugs.odt -> tests\libreoffice-bugs.doc using MS Word 97 3.4.1 Issues with DOC file ~~~~~~~~~~~~~~~~~~~~~~~~~~~ - TOC levels are not preserved. The doc file shows only the top-level headings in the TOC. This is an inconsistency. 3.5 libreoffice-bugs.docx ========================== Executing soffice --headless --convert-to docx --outdir tests/ tests/libreoffice-bugs.odt convert tests\libreoffice-bugs.odt -> tests\libreoffice-bugs.docx using Office Open XML Text 3.5.1 Issues with DOCX export ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. Author field is getting clobbered. It reads as below: "AUTHOR DocInformation:Created" 2. The embedded image is stripped from the output. This is a serious bug.
The files doc and docx file were opened within LibreOffice. I *do not* have a Microsoft Office suite installed on my machine.
Thanks for bugreport I agree that problem with command line conversion exist. We have some another bugreport, describing this problem. They not fixed yet.
Compare Bug 40186 - "Command-line conversion from HTML produces HTML, not RTF, DOC, etc."
Similar issue perhaps, i reported: #67005 Attached a docx file that in export to PDF via command prompt the TOC is completely missing. When doing the same using UI it produces a clean PDF. The sample file is attached to that issue, for those who do not have MS office to reproduce. Thanks!
Looks like multiple bugs in one report -- please try to keep issues simple and targeted so it's easy for us to reproduce and hand-off to a developer. I'm just going to choose one of the listed issues... (In reply to comment #5) > > 3.5 libreoffice-bugs.docx > ========================== > > Executing soffice --headless --convert-to docx --outdir tests/ > tests/libreoffice-bugs.odt > convert tests\libreoffice-bugs.odt -> tests\libreoffice-bugs.docx using > Office Open XML Text I'm testing with LO Version: 4.2.0.0.beta1 + Ubuntu 12.04.3 > > 3.5.1 Issues with DOCX export > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > 1. Author field is getting clobbered. It reads as below: > > "AUTHOR DocInformation:Created" Possible Repro: The Author line in the original ODT appears as "Jambunathan K". In the docx output, the line appears as "AUTHOR Jambunathan K" > > 2. The embedded image is stripped from the output. This is a > serious bug. NoRepro - The nifty unicorn image is present in the docx output. I'm going to tentatively change Status -> NEW and note that the 'AUTHOR' field might be incorrect.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.