PDF Renderer Adapter
Component Detail
Infrastructure
medium complexity
Shared Component
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Server-side PDF generation adapter using Puppeteer or a PDF rendering service to produce a submission-ready Bufdir report document. Abstracts the underlying PDF library behind a stable interface so the rendering engine can be swapped without affecting the report service. Runs on the Next.js backend on Vercel.
pdf-renderer-adapter
Responsibilities
- Accept structured Bufdir report data and produce a formatted PDF document
- Apply Bufdir-compatible document layout and formatting
- Stream or return PDF binary for download or storage
- Handle rendering errors and timeouts gracefully
Interfaces
renderReportToPdf(reportData)
renderReportToHtml(reportData)
getPdfAsBuffer(reportId)
getPdfAsStream(reportId)
validateRenderInput(reportData)