Patient Results PDF
React-pdf renderer for patient-results documents.
Install
Terminal
pnpm dlx shadcn@latest add @blocks/patient-results-pdfUse
This is an export module, not an editing surface.
TSX
import { pdf } from "@react-pdf/renderer";
import { PatientResultsPdfDocumentFromEditor } from "@/components/blocks/patient-results-pdf";
const blob = await pdf(
<PatientResultsPdfDocumentFromEditor
document={editor.document}
presetId="vns-report"
/>,
).toBlob();Works with
patient-results-editor— Produces the editable source document.patient-results-report— Renders the browser-side equivalent.
Dependencies
| Kind | Packages |
|---|---|
| Registry | @blocks/patient-results-presets, @blocks/patient-results-types |
Last updated on