prescription.renderers.pdf

PDFRenderer — reportlab-based PDF output.

Kramer Harrison, 2026

Classes

PDFRenderer()

Renders a Document to PDF using the 'reportlab' library.

class PDFRenderer[source]

Renders a Document to PDF using the ‘reportlab’ library.

render(document: Document) str[source]

Not meaningful for PDF; returns a description string.

write(document: Document, path: str | os.PathLike) None[source]

Render and write to a file.

Parameters:
  • document – The document model to render.

  • path – Output file path.