https://issues.apache.org/ooo/show_bug.cgi?id=123295

--- Comment #4 from Armin Le Grand <[email protected]> ---
ALG: Problem found, it's in the VclMetafileProcessor2D, the component which
converts primitives to metafiles, plus taking care of the view dozen hacks
added there over time and in usage. One of these exceptions is to generate
extra PDF export data, which is done, but has a twist between the fully
unclipped graphic region and the clipped one. These are given in the wrong
order to the PDFExtOutDevData::EndGroup call, mostly because I always forget
that the graphic object's transformation *is* the clipped region, thus the
clip-region while thr crop-region is the expanded one (the region the
un-cropped grahic would need). Thus, the 2nd is the real 'rOutputRect' and the
1st is the 'rVisibleOutputRect' in terms of PDFExtOutDevData::EndGroup.
Exchanging these in VclMetafileProcessor2D in the
PRIMITIVE2D_ID_GRAPHICPRIMITIVE2D case makes all work.
BTW: It works for non-recompressed images since these do not use an extra
implementation, but just rely on the metafile.
Preparing commit...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

Reply via email to