Created attachment 93214 [details] zero margins Page margins are set in DOCX but they are 0 when imported into LibreOffice.
Reproducible, tested using Mac OSX 10.9 with LibreOffice Version: 4.3.0.0.alpha0+ Build ID: a315454f349469923490e4116806ee19263849b8 Kind regards, Joren
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (4.4.2 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-05-02
The problem is still there. Testted with Version: 5.0.0.0.alpha1+ Build ID: 415c62dc3c3e66f837ec0c89c5bc2d65e17641a7 Locale: en-US (en_US.UTF-8)
Possible similar problem: attachment 123358 [details] from Bug 98480.
(In reply to Timur from comment #4) > Possible similar problem: attachment 123358 [details] from Bug 98480. No that is a different problem. The margin settings in the specific bug doc from this issue are simply ignored. And that is uncommon. I'll attach some files: 1 picture showing page settings in Word 2 new file from Word with content from attachment 93214 [details] copied into it 3 new blank file from Word with same default margins. 2 and 3 open just fine in LibreOffice. Removing 98480 and 33304 form CC
Created attachment 125081 [details] bug file in Word with page settings
Created attachment 125082 [details] content from bug file in new clean Word doc
Created attachment 125083 [details] clean WOrd doc with same page settings (visible at least) as bug doc
NB: I opened the bug doc in Word and did some tests - cleared formatting first paragraphs - deleted section separator on page 2 - deleted tables Non of these cured the problem
Created attachment 129860 [details] Docx example where margins ignored this document shows that margins have been *ignored* (it is displayed correctly with Office and WPS)
it seems that the problem is only in the document.xml part
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Created attachment 143122 [details] Zero margins DOCX compared in MSO, OO, LO and master Zero margins DOCX is created as 2007 DOCX, but issue with margins remains also when saved in MSO as 2013 version. In current LO versions 5.4 and master 6.2+ file looks better that before, but margins in LO remain 0 while they exist in MSO.
(In reply to Timur from comment #13) > In current LO versions 5.4 and master 6.2+ file looks better that before, The improvement came in 5.3, when "padding without borders" was honoured in bug 41542. The code that is swapping the Margin and Border padding is in BorderDistanceFromWord(), which references the URL https://wiki.openoffice.org/wiki/Writer/MSInteroperability/PageBorder. I'm not sure I want to tread here... Handle with care.
This issue seems to be solved in Version: 6.5.0.0.alpha0+ Build ID: b5a4570e214f0e965a8b32cee3c615856ae07ac4 CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US Calc: threaded @Timur, @Andras, @Justin, @Cor, could you please recheck ?
In 6.5+ attachment 93214 [details] opens as in 5.4 per attachment 143122 [details]. Looks similar to MSO, but page margin is 0 in LO and 2,5 cm in MSO.
Attila Szűcs committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/b35f48d806f9e5ec689eda3828f1e4503644873b tdf#74367 DOCX: fix page margins imported as border padding It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
I've built 376101c41cf23852b19db5725b0257069f3abd2e (which includes the fix mentioned in comment 17) under Linux and tested it on the testcase from bug 98480 (which references this bug, see bug 98480 comment 6), and I still have the same issue, though I don't know whether the cause is wrong margins (but this would be an explanation). For instance, the "......" after "PRENOM :" has been moved to the next line. In Format → Paragraph, tab "Indents & Spacings", if I reduce the "Indent After text" value, this fixes the issue. Alternatively, in Format → Page, tab "Page", if I reduce the right margin, this also fixes the issue, and also the issue that the frame below was not large enough. So the margins seem to be still wrong after opening the document. Note: I am not a LibreOffice regular user. I use it only when I need to read (and edit) some files I've been sent.
(In reply to Vincent Lefevre from comment #18) > I've built 376101c41cf23852b19db5725b0257069f3abd2e (which includes the fix > mentioned in comment 17) under Linux and tested it on the testcase from bug > 98480 (which references this bug, see bug 98480 comment 6), and I still have > the same issue, though I don't know whether the cause is wrong margins (but > this would be an explanation). Hi Vincent That document falls apart for a different reason, as stated in https://bugs.documentfoundation.org/show_bug.cgi?id=98480#c10 The red title of the document is followed by a continous section break and the new section has smaller right margin (0.05 cm) than the whole page (0.62 cm). This setting is not imported to Writer at all, see bug #124637 about it. In this bug the value display of the page margins and page borders padding was fixed - a visually similar but technically different problem, stemming from document model differences.
Verified in: Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 72841008bf422dfd8553240b3a78f0474d03523c CPU threads: 4; OS: Windows 10.0 Build 17134; UI render: Skia/Raster; VCL: win Locale: hu-HU (hu_HU); UI: hu-HU Calc: threaded Jumbo