data
@pdfcn-vue/pdf-imagePdfImage
Image with fit modes and caption support.
Installation
Terminal
npx shadcn-vue@latest add @pdfcn-vue/pdf-imageUsage
Example
<PdfImage src="/logo.png" :width="120" fit="contain" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| src | string | — | Image source (URL or data URI). |
| width | number | — | Render width in points. |
| height | number | — | Render height in points. |
| fit | 'contain' | 'cover' | 'fill' | 'contain' | Image fit mode. |
| caption | string | — | Optional caption. |
Live preview
The gallery uses a shared document. Change its theme in the theme builder to compare tokens.
Source files
Need the full template?
See blocks for invoices and reports composed from these primitives.