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

            Bug ID: 162282
           Summary: ReqIF export modifies exported embedded EMF images
           Product: LibreOffice
           Version: 7.6.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bisected, regression
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 195625
  --> https://bugs.documentfoundation.org/attachment.cgi?id=195625&action=edit
An ODT with an embedded EMF

The attached document has a single embedded EMF (220-byte
TestSetArcDirection.emf from
https://opengrok.libreoffice.org/xref/core/emfio/qa/cppunit/emf/data/TestSetArcDirection.emf?r=c920881f
used in
https://opengrok.libreoffice.org/xref/core/emfio/qa/cppunit/emf/EmfImportTest.cxx?r=c920881f#844).

Open it, and run this Basic code:

Sub Test
        Dim args(1) As New com.sun.star.beans.PropertyValue
        args(0).Name  = "FilterName"
        args(0).Value = "HTML (StarWriter)"
        args(1).Name  = "FilterOptions"
        args(1).Value = "xhtmlns=reqif-xhtml"

        target = ThisComponent.URL + ".reqif"
        ThisComponent.storeToUrl(target, args())
End Sub

The result is three files in the same directory, a .reqif, a PNG, and a EMF.

In version 7.5, the resulting EMF was exactly the same as embedded in the ODF
package, having 220 bytes size. Since version 7.6 (after commit
166a16594eb4e7e78f3f5b00a1432637d109bf8d), its size is more than 100 KB.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to