Created attachment 55501 [details] Problem PDF Example PDF made by save as from Inkscape. Looks fine in PDF viewers. In LODraw the gradient/pattern extends to the limits of the image. 3.5.0b2 does exactly the same thing. This is a specific issue extracted from bug 43806
Created attachment 55502 [details] source SVG for the problem PDF
Created attachment 55503 [details] Screen shot of LODraw after opening the problem PDF
Problem is unchanged in 3.5.0rc1 on Windows
Reproduced with LOdev 3.5.0beta3 e40af8c-10029e3-615e522-88673a2-727f724 Ubuntu 10.04.3 x86 Linux 2.6.32-37-generic Russian UI
Confirmed:4.2.0.2:OSX OS > All
Created attachment 98038 [details] New gradient test (PDF) Two types of bugs are mixed in provided test PDF (gradient.pdf): clipping and opacity. Here is the new test files: gradient_test4.svg and gradient_test4.pdf They are free from opacity bugs (and from big black rectangles as well).
Created attachment 98039 [details] New gradient test (SVG)
Created attachment 98040 [details] [review] Clipping patch (experimental) Clipping must be performed without modifying of source objects. But there is no such feature in LibreOffice Draw. I have tried to implement modifying clipping. But I was faced with two problems: 1. Radial gradients rendered by poppler as 256 polygons with 400 points. That is bad for performance, but when clip is applied, situation becomes even worse. 2. Function basegfx::tools::clipPolyPolygonOnPolyPolygon() behaves badly in border cases. With my test file it fails 2 times: with radial gradient clipping and with pattern fill clipping. Here is my experimental patch file. Maybe it will be useful for someone.
Bug 86211 contains newer version of clipping patch
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.