Page-by-page PDF renderer with navigation controls
PDFViewer fetches /api/files/{fileId}/pdf-info on mount.
Without a backend it shows an inline error — this is the expected no-backend state.
GET /api/files/{fileId}/pdf-info → { pageCount: number }GET /api/files/{fileId}/pdf-page/{n}?scale=2 → PNG image blobpdf2pic or similar| Prop | Type | Default | Description |
|---|---|---|---|
fileId | string | — | ID used to construct API URLs |
fileName | string | 'document.pdf' | Display name / alt text |
class | string | '' | Additional CSS classes on root |