render_pdf#

TreeMergeGenerator.render_pdf(*, context=None, item_filter: str = '', request=None) bytes#

Render the template to a PDF byte stream.

Parameters:
contextdict, optional

Additional context passed to the rendering engine.

item_filterstr, optional

ADR query string used to select Item instances.

requestHttpRequest, optional

Django request object, if available.

Returns:
bytes

PDF document bytes.

Raises:
ADRException

If rendering or PDF generation fails.