2.2.3. Clipping Portions of the Layout (layout.elements.clip)

class layout.managers.clip.ClipLM(element=None)

Bases: layout.managers.root.LayoutManager

A ReportLab-specific layout manager that establishes a clipping box around its child element’s content before rendering it.

Because most elements and managers reserve the minimum amount of space they need to draw, this manager would have no effect. In some cases, particularly with managers in the fixed or jitter modules, the drawing is outside the reserved space, this manager ensures any content that does overlap is trimmed.

get_minimum_size(data)

How small can the element be? Should return a Point.

render(rect, data)

Asks the element to render itself.