[Libreoffice-bugs] [Bug 112856] FILEOPEN DOCX Bad header display / rels with image from header2.xml but should display header3.xml

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 27 11:51:56 UTC 2021


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

NISZ LibreOffice Team <libreoffice at nisz.hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.documentfounda
                   |                            |tion.org/show_bug.cgi?id=61
                   |                            |305

--- Comment #6 from NISZ LibreOffice Team <libreoffice at nisz.hu> ---
After thinking a bit about this, in the document.xml we see this:

                        <w:headerReference w:type="even"
                                                r:id="rId6"/>
                        <w:headerReference w:type="default"
                                                r:id="rId7"/>
                        <w:footerReference w:type="even"
                                                r:id="rId8"/>
                        <w:footerReference w:type="default"
                                                r:id="rId9"/>
                        <w:headerReference w:type="first"
                                                r:id="rId10"/>
                        <w:footerReference w:type="first"
                                                r:id="rId11"/>
Word's UI shows there is no even or first header enabled, so we need to go with
default. (there is a disabled even header though, which can be enabled in Word)
document.xml.rels shows this:
<Relationship
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header"
Target="header2.xml" Id="rId7"/>
and header2.xml contains two references to images:
                                <v:shape id="_x0000_i1025"
                                        type="#_x0000_t75"
                                        style="width:573pt;height:733.5pt">
                                        <v:imagedata r:id="rId1"
                                                        o:title=""/>
                                </v:shape>
and
                                <v:shape id="_x0000_i1026"
                                        type="#_x0000_t75"
                                        style="width:535.5pt;height:624pt">
                                        <v:imagedata r:id="rId2"
                                                        o:title=""/>
                                </v:shape>
header2.xml.rels shows then the real targets, which are
Relationship
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
Target="media/image1.emf" Id="rId1"/>

<Relationship
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
Target="media/image2.emf" Id="rId2"/>

So the images are definitely part of the default header, just open the Page
Layout ribbon, select Tabloid (11x17) paper size and delete all text from the
header.

What really happens is that these are fairly large images and don't fit in the
small default header space of this document.
Word thus cleverly hides them, as can be observed in the attachments of bug
61305 as well. 
Then the question is: Why would a 25.88 cm tall image fit in the header of a
Tabloid size, 43.17 cm tall paper, but only if there are no more paragraphs
before it?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210727/29157dc6/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list