[Libreoffice-bugs] [Bug 112075] New: Problems with element <draw:fill-image> in flat ODF

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Aug 28 22:21:50 UTC 2017


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

            Bug ID: 112075
           Summary: Problems with element <draw:fill-image> in flat ODF
           Product: LibreOffice
           Version: 4.1 all versions
          Hardware: x86 (IA32)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rb.henschel at t-online.de

Created attachment 135834
  --> https://bugs.documentfoundation.org/attachment.cgi?id=135834&action=edit
Example files, see description

If you use an image for background filling, e.g. a page background, then the
image is specified by the <draw:fill-image> element in <office:styles> in
styles.xml in the package. This element references the image itself in the
Pictures folder in the package.

If you use the flat ODF format, then no folder Pictures exists. LibreOffice
writes the <office:binary-data> element as child of <draw:fill-image> to store
the image base64 encoded. But that child element is not allowed in ODF 1.2. I
have written https://issues.oasis-open.org/browse/OFFICE-3933 to get
LibreOffices behavior into ODF 1.3. I think, that there is no need to put
something temporarily into loext namespace, because LibreOffice is the only
application which can read and write flat ODF. Or do you know another one?

If you use a link to an external image in <draw:fill-image>, that is valid ODF
1.2. Such link works in packed format although LibreOffice has no UI to link an
external background image. But it fails in flat format. That is, what this
issue is about, LibreOffice should be able to interpret links to external
images in flat format as well.

The attached zip-file contains an image Clipart.png which is linked from
ImageBackgroundexternalImage.fodp and from ImageBackgroundeternalImage.odp. The
file ImageBackground_strict.fodg is written by LibreOffice and contains the
faulty <office:binary-data> element. To validate the flat ODF file against the
RELAX NG schema, you can use xmllint on Linux or Cygwin or use the Jave program
jing on Windows.

-- 
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/20170828/641300ce/attachment-0001.html>


More information about the Libreoffice-bugs mailing list