Created attachment 89461 [details] File for which Sections getting added after RT Steps to reproduce: 1. Open the file in LibreOffice 2. Click File -> Save As (Microsoft Word 2007/2010 (.docx)) 3. Open in MS Office 2010 and compare with original document Expected: 1. File should be identical Actual: 1. The saved file has many more pages 2. In document.xml of original file, there is just one <sectPr> whereas in round trip document, there are 20+ <sectPr> because of which it becomes several pages long and several header/footer xmls get added in roundtrip document.
Created attachment 89462 [details] Round Triped file
The root cause found was faulty calculation of PageDesc value & This was the reason for increasing number of pages in RT doc. code changes done and gerrit review link is https://gerrit.libreoffice.org/6813 Note:This Document contains multiple issue after this code changes , Still the RT 10 page document(Initially used to come as 109 pages) attaching the RT document after code changes. Lokking into this other issue.
Created attachment 89834 [details] Round Triped file after code changes on 26Nov
One more issue was there with this file and also found for many files that not preserving table row property "allow row to break across pages" during export which was causing problem that all the row data was getting displayed on same page and hence after RT. Gerrit Review link is https://gerrit.libreoffice.org/#/c/6834/
Still this doc has one issue remaining .I am currently working on it.
Tushar Bende committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=5efc2a34a54327961bb393fcf07a562b90f462bd fdo#71784:Preserve prop "allow row to break across pages" during export The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Tushar Bende committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=9a37ce189881f12d678fdb054219b13c3e4c7e40 fdo#71784: Invalid Sections getting added to the document after RT The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Tushar Bende committed a patch related to this issue. It has been pushed to "libreoffice-4-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1b2cf579105d8a1e44b5e2a8aafb79c274fc8455&h=libreoffice-4-2 fdo#71784: Invalid Sections getting added to the document after RT It will be available in LibreOffice 4.2.3. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.