Bug 46026 - Command line converter + Conversion issues/inconsistencies between odt->doc, docx, pdf
Summary: Command line converter + Conversion issues/inconsistencies between odt->doc, ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Libreoffice (show other bugs)
Version: 3.4.5 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: MultipleBugs
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-14 02:00 UTC by Jambunathan K
Modified: 2013-11-25 01:47 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
libreoffice-bugs.org (573 bytes, text/x-org)
2012-02-14 02:00 UTC, Jambunathan K
Details
libreoffice-bugs.odt (20.52 KB, application/vnd.oasis.opendocument.text)
2012-02-14 02:01 UTC, Jambunathan K
Details
libreoffice-bugs.docx (17.76 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2012-02-14 02:02 UTC, Jambunathan K
Details
libreoffice-bugs.doc (29.50 KB, application/msword)
2012-02-14 02:03 UTC, Jambunathan K
Details
libreoffice-bugs.pdf (63.00 KB, application/pdf)
2012-02-14 02:04 UTC, Jambunathan K
Details

Description Jambunathan K 2012-02-14 02:00:12 UTC
Created attachment 57020 [details]
libreoffice-bugs.org
Comment 1 Jambunathan K 2012-02-14 02:01:43 UTC
Created attachment 57021 [details]
libreoffice-bugs.odt
Comment 2 Jambunathan K 2012-02-14 02:02:44 UTC
Created attachment 57023 [details]
libreoffice-bugs.docx
Comment 3 Jambunathan K 2012-02-14 02:03:34 UTC
Created attachment 57024 [details]
libreoffice-bugs.doc
Comment 4 Jambunathan K 2012-02-14 02:04:27 UTC
Created attachment 57025 [details]
libreoffice-bugs.pdf
Comment 5 Jambunathan K 2012-02-14 02:29:33 UTC
                              *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.
Comment 6 Jambunathan K 2012-02-14 02:31:03 UTC
The files doc and docx file were opened within LibreOffice. I *do not* have a Microsoft Office suite installed on my machine.
Comment 7 sasha.libreoffice 2012-03-21 08:53:10 UTC
Thanks for bugreport
I agree that problem with command line conversion exist. We have some another bugreport, describing this problem. They not fixed yet.
Comment 8 Roman Eisele 2012-05-07 09:21:50 UTC
Compare Bug 40186 - "Command-line conversion from HTML produces HTML, not RTF, DOC, etc."
Comment 9 Shai Petel 2013-07-17 16:39:06 UTC
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!
Comment 10 Robinson Tryon (qubit) 2013-11-25 01:47:11 UTC
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.