Bug 106552 - Commandline convert DOCX to fodt or odt, wrong <text:soft-page-break/>
Summary: Commandline convert DOCX to fodt or odt, wrong <text:soft-page-break/>
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.2.5.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX ODF-Flat
  Show dependency treegraph
 
Reported: 2017-03-15 15:48 UTC by Jan Idzikowski
Modified: 2020-10-02 17:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
DOCX document (10.56 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-03-15 15:49 UTC, Jan Idzikowski
Details
fodt document created with commandline converting (30.95 KB, application/vnd.oasis.opendocument.text-flat-xml)
2017-03-15 15:50 UTC, Jan Idzikowski
Details
fodt document created with gui (32.23 KB, application/vnd.oasis.opendocument.text-flat-xml)
2017-03-15 15:50 UTC, Jan Idzikowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Idzikowski 2017-03-15 15:48:53 UTC
Description:
Different results when convert DOCX document to fodt|odt with gui and commandline:
soffice --headless --convert-to "fodt:OpenDocument Text Flat XML" --outdir /home/ji/tmp/break 2pages.docx

In the fodt and odt (content.xml) file, which where converted with the commandline, there are 2 <text:soft-page-break/> breaks instead of 1 and both in the wrong place.

When i save the DOCX document to fodt or odt in the gui, is everything ok.

The DOCX document has 2 pages.




Steps to Reproduce:
1. soffice --headless --convert-to "fodt:OpenDocument Text Flat XML" --outdir YOUR_DIR 2pages.docx
2. xmllint --format 2pages.fodt |grep page-break


Actual Results:  
soffice --headless --convert-to "fodt:OpenDocument Text Flat XML" --outdir YOUR_DIR 2pages.docx

xmllint --format 2pages.fodt |grep page-break

Expected Results:
 <office:text text:use-soft-page-breaks="true">
      <text:p text:style-name="Standard"><text:soft-page-break/>Page 1 25</text:p>
      <text:p text:style-name="Standard"><text:soft-page-break/>Page 1 51</text:p>



Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36
Comment 1 Jan Idzikowski 2017-03-15 15:49:32 UTC
Created attachment 131905 [details]
DOCX document

DOCX document
Comment 2 Jan Idzikowski 2017-03-15 15:50:25 UTC
Created attachment 131906 [details]
fodt document created with commandline converting
Comment 3 Jan Idzikowski 2017-03-15 15:50:46 UTC
Created attachment 131907 [details]
fodt document created with gui
Comment 4 Buovjaga 2017-03-19 17:25:54 UTC
Repro. Severity minor as gui works.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.3
Build ID: 5.3.0-2
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: kde4; Layout Engine: new; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Comment 5 QA Administrators 2019-05-22 02:53:01 UTC Comment hidden (obsolete)
Comment 6 Mike Kaganski 2020-10-02 17:08:10 UTC
Can't repro with Version: 7.0.2.1 (x64)
Build ID: ede20268f3f8777cdf69e0281835d320c41213fc
CPU threads: 12; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

WORKSFORME? Or Linux-specific?
Comment 7 Buovjaga 2020-10-02 17:13:17 UTC
(In reply to Mike Kaganski from comment #6)
> Can't repro with Version: 7.0.2.1 (x64)
> Build ID: ede20268f3f8777cdf69e0281835d320c41213fc
> CPU threads: 12; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL:
> win
> Locale: ru-RU (ru_RU); UI: en-US
> Calc: CL
> 
> WORKSFORME? Or Linux-specific?

WORKSFORME

Arch Linux 64-bit
Version: 7.1.0.0.alpha0+
Build ID: 09c24681a3414092fde50ec0f617c9f7c79e8a61
CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 30 September 2020