RenderPdfTemplateDto
Properties
| Name | Type |
|---|---|
templateId | number |
fileName | string |
context | { [key: string]: any; } |
metadata | PdfMetadata |
renderer | string |
Example
import type { RenderPdfTemplateDto } from '@pdf-generator/client'
// TODO: Update the object below with actual values
const example = {
"templateId": 1,
"fileName": invoice-001.pdf,
"context": {"customerName":"Acme Corp","invoiceNumber":"INV-001","date":"2026-06-05"},
"metadata": null,
"renderer": null,
} satisfies RenderPdfTemplateDto
console.log(example)
// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)
// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as RenderPdfTemplateDto
console.log(exampleParsed)
[Back to top] [Back to API list] [Back to Model list] [Back to README]