incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 118730] embedded svg graphic is printed wrong
Date Wed, 11 Jan 2012 15:34:51 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=118730

Armin Le Grand <Armin.Le.Grand@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |STARTED
     Ever Confirmed|0                           |1

--- Comment #2 from Armin Le Grand <Armin.Le.Grand@me.com> 2012-01-11 15:34:51 UTC ---
ALG: Reason identified, it's the (old) converion from Metafile to SdrObjects.
In the first step the primitives get converted to a metafile which is not too
bad, just losing some precision. Unfortunately the Svg contains clip paths,
originally the curves are longer than the rasters. I can imagine that the
programmer (whoever/whatever app is creating this) saved some work by not
needing to exactly calculate that curves. The metafile gets the correct
ClipRegions (the old Vcl ones). In a 2nd step this metafile gets converted to
SdrObjects. In that (very old) step there is no good handling of ClipRegions,
it tries to solve the problem by painting the clipped stuff to a bitmap. This
works, but of course uses a bad resolution and no transparency. Sigh.
We currently have no more up-to-date converter to primitives despite I'm
planning to write one for some time already. Of course a new one would just
clip the geometry when a clip region is used and try to stay completely on the
vector side of things.
I'll check if I can make the old stuff a little bit smarter concerning handling
of ClipRegions, but I'm not sure this is possible.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Mime
View raw message