Description: Bug 103573 fixed the horizontal import of docx shapes with alignment relative to 'Left Margin' or 'Right Margin'. The import of shapes with vertical alignment relative to 'Top Margin' and "Bottom Margin' are still unhanded. Steps to Reproduce: 1. In Word insert image, texbox, or shape. 2. Set vertical alignment relative to 'Top Margin' or 'Bottom Margin' 3. Save and Open in Writer Actual Results: 'Bottom Margin' objects are placed on the top. Expected Results: Same results as Word Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
Created attachment 128390 [details] sample docx file with vertical alignment
Created attachment 128391 [details] Compare to .doc file that is correctly imported
Confirmed in Version: 5.3.0.0.alpha1+ Build ID: 64d3bd38c9242c1cc114f6e68bf13475ef679b73 CPU Threads: 4; OS Version: Linux 4.2; UI Render: default; VCL: gtk2; Layout Engine: old; Locale: ca-ES (ca_ES.UTF-8); Calc: group
Zolnai, The MS-DOC importer maps Word's "Top Margin" to "Entire Page". Would that work here?
(In reply to Luke from comment #4) > Zolnai, > The MS-DOC importer maps Word's "Top Margin" to "Entire Page". Would that > work here? Hi Luke, I don't know how DOC import exactly works, but that's true we don't have similar options as MS Word's "Top Margin" and "Bottom Margin" alignment, so a workaround can be an option. It seems DOC import handle this on the way setting alignment to "Entire Page" and somehow convert position values. If this works good enough,then it can be a good idea to implement it in DOCX import too.
** 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
Still Version: 6.1.0.0.alpha0+ (x64) Build ID: 61eafd7d39665dd6dc90e1d2b8ddaf7562fc58ed Objects set with vertical alignment relative to 'Top Margin' or 'Bottom Margin' are misplaced on the page in the docx. MS-DOC file works as expected. Miklos, any thoughts here?
The bug #133045 is similar, however this example doc contains VML, while that one contains DML shape - this might make a bit of difference, so not closing yet.
Tibor Nagy committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/cf0c04d5fc85acbe6cbeb090de6a739a0d5a8d30 tdf#103611 sw: fix vertical alignment to page bottom margin It will be available in 7.1.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.
@Tibor: I've modified this bug only for the "bottom margin" case, so you can close it. We must file a new bug for the "top margin", where we will be able to do more investigation, according to the missing top page border RelOrientation. Likely we will need a PAGE_PRINT_AREA_TOP_AREA RelOrientation (or PAGE_TOP, similar to the existing PAGE_LEFT and PAGE_RIGHT).