Bug 37002 - DOCX import: object anchored to page is anchored to character (Comment 7)
Summary: DOCX import: object anchored to page is anchored to character (Comment 7)
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.4.0 Beta4
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx, needsDevEval
: 135578 136581 (view as bug list)
Depends on:
Blocks: DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2011-05-09 03:26 UTC by Tobias Burnus
Modified: 2024-03-20 09:20 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
sample ODT with text boxes anchored to two different pages (10.58 KB, application/vnd.oasis.opendocument.text)
2024-02-28 03:39 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Burnus 2011-05-09 03:26:42 UTC
Follow up to bug 34305. The simple .DOCX example at attachment 39617 [details] (created with Word 2003) has an image, which is according to Word 2003 (w/ OOX extensions) is anchored to the page (absolute coordinates).

However, in LibreOffice 3.4b4, the image is anchored to character and thus the "<- figure" text is printed below instead of right of the figure.
Comment 1 Noel Power 2011-05-10 03:01:21 UTC
i can try and look more at that I guess
Comment 2 Roman Eisele 2012-05-04 09:22:23 UTC
This is (primarily) a Writer issue, therefore changed 'Component' field
accordingly.
Comment 3 Roman Eisele 2012-05-04 09:24:59 UTC
Still [REPRODUCIBLE] with LibreOffice 3.5.3.2 (Build-ID: 235ab8a-3802056-4a8fed3-2d66ea8-e241b80), German langpack installed, on MacOS X 10.6.8.

As reported by Tobias Burnus, "the image is anchored to character and thus the
"<- figure" text is printed below instead of right of the figure.
Comment 4 Noel Power 2012-05-04 09:27:53 UTC
guess I am really not the right person to look at writer stuff ( which I only
have the tiniest clue about ) <sigh> should have released this bug back a long
time ago :-(
Comment 5 sasha.libreoffice 2013-05-16 12:07:45 UTC
in attachment picture anchored horizontally to column and vertically to paragraph
In Writer absent both variants. 

Also problem with wrapping. Originally picture wrapped by contour. But in Writer it is "Wrap through". Therefore part of text is hidden behind of picture.
Comment 6 Joel Madero 2015-05-02 15:43:47 UTC Comment hidden (obsolete)
Comment 7 Tobias Burnus 2015-05-11 11:34:21 UTC
With LO 4.4.0.3:
* The "<- figure" text is now correctly printed right of the figure (good).
* LO still claims that the figure is anchored to the character
* MSO Word 2007 shows in the "Format Picture" -> "Layout" -> "Advanced" -> "Picture Position": Absolute position 0.25" right to Column; 0.02" below paragraph, [X] move object with text; [X] lock anchor, [X] Allow overlap.

Thus, wording wise there is still a difference between LO and MSO. However, at a glance, appearance and editing works likewise in LO and MSO. Thus, I am not completely sure whether there is still a bug or not.
Comment 8 QA Administrators 2016-09-20 09:41:59 UTC Comment hidden (obsolete)
Comment 9 Tobias Burnus 2016-09-20 13:25:26 UTC
Still occurs with LO 5.2.1.2 on Windows 7.
Comment 10 Timur 2017-05-04 14:19:45 UTC
(In reply to Tobias Burnus from comment #7)
> Thus, wording wise there is still a difference between LO and MSO. However,
> at a glance, appearance and editing works likewise in LO and MSO. Thus, I am
> not completely sure whether there is still a bug or not.

According to what was written in Bug 49179, I'll also mark this as NotABug.
If I'm wrong, feel free to set back to New.
Comment 11 Stéphane Guillou (stragu) 2024-02-28 03:27:40 UTC
*** Bug 135578 has been marked as a duplicate of this bug. ***
Comment 12 Stéphane Guillou (stragu) 2024-02-28 03:29:04 UTC
*** Bug 136581 has been marked as a duplicate of this bug. ***
Comment 13 Stéphane Guillou (stragu) 2024-02-28 03:39:57 UTC
Created attachment 192838 [details]
sample ODT with text boxes anchored to two different pages

A minimal sample document to illustrate.
When saving as DOCX, the page 2 text box moves to page 1.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a1a1d8edb9d4a62b747aa7069b3026e2ba75704d
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 14 Stéphane Guillou (stragu) 2024-02-28 03:45:19 UTC
Justin, seeing your work for bug 135581, I'm wondering what you think about the example in attachment 192838 [details]:
* if page 2 text box is anchored to character by hand, it jumps to _end_ of page 1.
* if the document is saved as DOCX and reloaded, the page 2 text box is also anchored to character, but jumps to the _top_ of page 1 instead.

Is there any potential improvements for this particular case, to minimise object movement in either case?
Comment 15 Stéphane Guillou (stragu) 2024-02-28 03:54:43 UTC
(...a simpler example of bug 100580, in a way)
Comment 16 pagaced 2024-03-20 09:20:18 UTC Comment hidden (spam)