Bug 17346

Summary: Simple knockout groups should just be rendered with CAIRO_OPERATOR_SOURCE
Product: poppler Reporter: Carl Worth <cworth>
Component: cairo backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: jmuizelaar
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Carl Worth 2008-08-28 16:59:31 UTC
Cairo uses knockout groups to put its fallback images into PDF files, and cairo would be happier if poppler would just use SOURCE to draw those groups.

This could probably be done if poppler looked at the knockout group and saw that it just consists of drawing one rectangular image, (so it knows the "shape" is a rectangle and doesn't need to compute the shape and draw with DEST_OUT and ADD to get the shape).

Good luck, Jeff!

-Carl
Comment 1 Jeff Muizelaar 2008-09-16 21:51:04 UTC
It looks like this would have to be done with EXTEND_PAD and clipping to a rectangle. The pdf backend doesn't seem to have proper support for EXTEND_PAD and if it was fixed, it seems likely using EXTEND_PAD would cause a fallback. So there really isn't good api for painting the knockout groups with SOURCE.
Comment 2 GitLab Migration User 2018-08-21 11:19:44 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/625.

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.