https://bugs.documentfoundation.org/show_bug.cgi?id=170302

            Bug ID: 170302
           Summary: FILESAVE: Convert-to FODT (CLI) creates inconsistent
                    pagination compared to GUI "save-as"
           Product: LibreOffice
           Version: 24.8.7.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 205012
  --> https://bugs.documentfoundation.org/attachment.cgi?id=205012&action=edit
sample document

Problem description:
Whenever saving an ODT document as FODT through the GUI, the resulting file has
soft-page-break markers matching the original rendered pagination of the ODT
document. However, when doing the same using the headless CLI with
--convert-to, the pagination is often different and sometimes completely
missing. Interestingly, both output files have the same `meta:page-count="#"`
attribute meaning that also the CLI is aware of the pages, even if it does not
produce the break markers.

Steps to reproduce using the enclosed `sample.odt`:
1. Open the document with LibreOffice
2. “File” → “Save as” → “.fodt”
3. Open the produced .fodt file with text editor and find 2
<text:soft-page-break/> tags (3 pages in the original document)
4. Run `libreoffice --convert-to fodt /sample.odt`
5. Open the produced .fodt file and find 0 soft page break tags

Expected behavior:
FODT file converted with headless CLI has matching pagination with what the GUI
renders and saves via "save-as".

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to