incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 118730] embedded svg graphic is printed wrong
Date Wed, 11 Jan 2012 15:34:51 GMT

Armin Le Grand <> changed:

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

--- Comment #2 from Armin Le Grand <> 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:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

View raw message