https://bugs.freedesktop.org/show_bug.cgi?id=86211

            Bug ID: 86211
           Summary: PDF Import: clipping is not implemented
           Product: LibreOffice
           Version: 4.4.0.0.alpha0+ Master
          Hardware: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Drawing
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 109354
  --> https://bugs.freedesktop.org/attachment.cgi?id=109354&action=edit
Clipping patch v2

PDF format contains a feature, called clipping.
Some parts of an objects can be masked using special clip polygon.
This feature is widely used in gradients, for example.
Gradient is drawn in rectangular area, then clipped by containing polygon.

There is no equivalent of this feature in LO.Draw.
But it can be emulated using polygon intersections.
Here is my patch with such implementation.

But before applying this change, some problems needs to be solved:
1.
Import of radial gradients produces polygons with hundreds of vertices.
Applying additional intersect operations to them produces noticable slowdown.
Maybe using bezier splines in such case will be a good solution.
2.
Intersect operation works bad in some cases, producing inacceptable result.
Bug 84032 is certainly needs to be fixed, but maybe there are some more bugs.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to