[{"data":1,"prerenderedAt":1239},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:EznpTUJOfS6pQ0ObuI6XFQNEjLCAhe-LuZuJ9PHZSJY":197,"content-page-surround:docs:EznpTUJOfS6pQ0ObuI6XFQNEjLCAhe-LuZuJ9PHZSJY":1226,"i-logos:vue":1229,"i-logos:typescript-icon":1234,"i-lucide:clipboard":1236},[4,25,55,119,184],{"title":5,"id":6,"canonicalKey":7,"locale":8,"draft":9,"icon":10,"sidebar":11,"path":12,"children":13},"Start","content:docs:1.getting-started:.navigation.yml","1","en",false,"lucide:rocket","group","\u002Fdocs\u002Fgetting-started",[14,20],{"title":15,"id":16,"canonicalKey":17,"locale":8,"draft":9,"icon":18,"path":19},"Install Nuxt PDF","content:docs:1.getting-started:2.installation.md","1\u002F2","lucide:download","\u002Fdocs\u002Fgetting-started\u002Finstallation",{"title":21,"id":22,"canonicalKey":23,"locale":8,"draft":9,"icon":10,"path":24},"Render your first PDF","content:docs:1.getting-started:3.quickstart.md","1\u002F3","\u002Fdocs\u002Fgetting-started\u002Fquickstart",{"title":26,"page":9,"canonicalKey":27,"locale":8,"id":28,"draft":9,"icon":29,"sidebar":11,"children":30},"Learn","2","content:docs:2.learn:.navigation.yml","lucide:graduation-cap",[31,37,43,49],{"title":32,"id":33,"canonicalKey":34,"locale":8,"draft":9,"icon":35,"path":36},"Templates and the registry","content:docs:2.learn:1.templates-and-registry.md","2\u002F1","lucide:files","\u002Fdocs\u002Flearn\u002Ftemplates-and-registry",{"title":38,"id":39,"canonicalKey":40,"locale":8,"draft":9,"icon":41,"path":42},"The document tree","content:docs:2.learn:2.document-tree.md","2\u002F2","lucide:component","\u002Fdocs\u002Flearn\u002Fdocument-tree",{"title":44,"id":45,"canonicalKey":46,"locale":8,"draft":9,"icon":47,"path":48},"Styling and layout","content:docs:2.learn:3.styling-and-layout.md","2\u002F3","lucide:ruler","\u002Fdocs\u002Flearn\u002Fstyling-and-layout",{"title":50,"id":51,"canonicalKey":52,"locale":8,"draft":9,"icon":53,"path":54},"Runtime and data loading","content:docs:2.learn:4.runtime-and-data.md","2\u002F4","lucide:server","\u002Fdocs\u002Flearn\u002Fruntime-and-data",{"title":56,"page":9,"canonicalKey":57,"locale":8,"id":58,"draft":9,"icon":59,"sidebar":11,"children":60},"Guides","3","content:docs:3.guides:.navigation.yml","lucide:compass",[61,67,73,79,85,91,97,103,108,114],{"title":62,"id":63,"canonicalKey":64,"locale":8,"draft":9,"icon":65,"path":66},"Build reusable document components","content:docs:3.guides:1.reusable-components.md","3\u002F1","lucide:blocks","\u002Fdocs\u002Fguides\u002Freusable-components",{"title":68,"id":69,"canonicalKey":70,"locale":8,"draft":9,"icon":71,"path":72},"Add images and fonts","content:docs:3.guides:2.images-and-fonts.md","3\u002F2","lucide:image","\u002Fdocs\u002Fguides\u002Fimages-and-fonts",{"title":74,"id":75,"canonicalKey":76,"locale":8,"draft":9,"icon":77,"path":78},"Configure remote images","content:docs:3.guides:3.remote-images.md","3\u002F3","lucide:cloud-download","\u002Fdocs\u002Fguides\u002Fremote-images",{"title":80,"id":81,"canonicalKey":82,"locale":8,"draft":9,"icon":83,"path":84},"Add links, bookmarks, and a table of contents","content:docs:3.guides:4.contents-links-bookmarks.md","3\u002F4","lucide:list-tree","\u002Fdocs\u002Fguides\u002Fcontents-links-bookmarks",{"title":86,"id":87,"canonicalKey":88,"locale":8,"draft":9,"icon":89,"path":90},"Draw SVG graphics","content:docs:3.guides:5.svg-graphics.md","3\u002F5","lucide:shapes","\u002Fdocs\u002Fguides\u002Fsvg-graphics",{"title":92,"id":93,"canonicalKey":94,"locale":8,"draft":9,"icon":95,"path":96},"Test a PDF","content:docs:3.guides:6.testing.md","3\u002F6","lucide:flask-conical","\u002Fdocs\u002Fguides\u002Ftesting",{"title":98,"id":99,"canonicalKey":100,"locale":8,"draft":9,"icon":101,"path":102},"Diagnose render failures","content:docs:3.guides:7.errors-and-debugging.md","3\u002F7","lucide:bug","\u002Fdocs\u002Fguides\u002Ferrors-and-debugging",{"title":104,"id":105,"canonicalKey":106,"locale":8,"draft":9,"icon":53,"path":107},"Deploy and operate","content:docs:3.guides:8.deployment.md","3\u002F8","\u002Fdocs\u002Fguides\u002Fdeployment",{"title":109,"id":110,"canonicalKey":111,"locale":8,"draft":9,"icon":112,"path":113},"Production recipes","content:docs:3.guides:9.recipes.md","3\u002F9","lucide:notebook-tabs","\u002Fdocs\u002Fguides\u002Frecipes",{"title":115,"id":116,"canonicalKey":117,"locale":8,"draft":9,"icon":53,"path":118},"Render outside Nitro","content:docs:3.guides:10.standalone-node.md","3\u002F10","\u002Fdocs\u002Fguides\u002Fstandalone-node",{"title":120,"page":9,"canonicalKey":121,"locale":8,"id":122,"draft":9,"icon":123,"sidebar":11,"children":124},"Reference","4","content:docs:4.reference:.navigation.yml","lucide:book-marked",[125,131,137,143,149,155,161,167,173,179],{"title":126,"id":127,"canonicalKey":128,"locale":8,"draft":9,"icon":129,"path":130},"Module options","content:docs:4.reference:1.module-options.md","4\u002F1","lucide:sliders","\u002Fdocs\u002Freference\u002Fmodule-options",{"title":132,"id":133,"canonicalKey":134,"locale":8,"draft":9,"icon":135,"path":136},"definePdf","content:docs:4.reference:2.define-pdf.md","4\u002F2","lucide:settings-2","\u002Fdocs\u002Freference\u002Fdefine-pdf",{"title":138,"id":139,"canonicalKey":140,"locale":8,"draft":9,"icon":141,"path":142},"Registry and render result","content:docs:4.reference:3.registry.md","4\u002F3","lucide:braces","\u002Fdocs\u002Freference\u002Fregistry",{"title":144,"id":145,"canonicalKey":146,"locale":8,"draft":9,"icon":147,"path":148},"Primitives","content:docs:4.reference:4.primitives.md","4\u002F4","lucide:box","\u002Fdocs\u002Freference\u002Fprimitives",{"title":150,"id":151,"canonicalKey":152,"locale":8,"draft":9,"icon":153,"path":154},"Styles","content:docs:4.reference:5.styles.md","4\u002F5","lucide:palette","\u002Fdocs\u002Freference\u002Fstyles",{"title":156,"id":157,"canonicalKey":158,"locale":8,"draft":9,"icon":159,"path":160},"Page sizes","content:docs:4.reference:6.page-sizes.md","4\u002F6","lucide:file","\u002Fdocs\u002Freference\u002Fpage-sizes",{"title":162,"id":163,"canonicalKey":164,"locale":8,"draft":9,"icon":165,"path":166},"Composables","content:docs:4.reference:7.composables.md","4\u002F7","lucide:function-square","\u002Fdocs\u002Freference\u002Fcomposables",{"title":168,"id":169,"canonicalKey":170,"locale":8,"draft":9,"icon":171,"path":172},"Errors and limits","content:docs:4.reference:8.errors-and-limits.md","4\u002F8","lucide:triangle-alert","\u002Fdocs\u002Freference\u002Ferrors-and-limits",{"title":174,"id":175,"canonicalKey":176,"locale":8,"draft":9,"icon":177,"path":178},"Test utilities","content:docs:4.reference:9.test-utilities.md","4\u002F9","lucide:test-tube","\u002Fdocs\u002Freference\u002Ftest-utilities",{"title":180,"id":181,"canonicalKey":182,"locale":8,"draft":9,"icon":141,"path":183},"Standalone build and runtime","content:docs:4.reference:10.standalone.md","4\u002F10","\u002Fdocs\u002Freference\u002Fstandalone",{"title":185,"id":186,"canonicalKey":187,"locale":8,"draft":9,"icon":188,"sidebar":11,"path":189,"children":190},"Examples and support","content:docs:5.examples:.navigation.yml","5","lucide:layout-grid","\u002Fdocs\u002Fexamples",[191],{"title":192,"id":193,"canonicalKey":194,"locale":8,"draft":9,"icon":195,"path":196},"Supported behavior and limitations","content:docs:5.examples:2.supported-behavior.md","5\u002F2","lucide:scale","\u002Fdocs\u002Fexamples\u002Fsupported-behavior",{"title":32,"description":198,"icon":35,"redirectFrom":199,"body":201,"type":1212,"id":33,"canonicalKey":34,"draft":9,"partial":9,"locale":8,"collection":1213,"navigationFile":9,"file":1214,"resolvedRefs":1220,"route":1221,"resolution":1223},"How files under pdfs become typed server-side render functions.",[200],"\u002Fdocs\u002Fguides\u002Fauthoring",{"type":202,"children":203,"toc":1204},"root",[204,227,245,252,257,342,347,417,422,428,447,855,878,892,898,903,1166,1185],{"type":205,"tag":206,"props":207,"children":208},"element","p",{},[209,212,218,220,225],{"type":210,"value":211},"text","A PDF template is a Vue Single File Component under ",{"type":205,"tag":213,"props":214,"children":215},"code",{},[216],{"type":210,"value":217},"pdfs\u002F",{"type":210,"value":219},". Nuxt PDF discovers\nthe file and creates one typed entry in the server-only ",{"type":205,"tag":213,"props":221,"children":222},{},[223],{"type":210,"value":224},"#pdf",{"type":210,"value":226}," registry.",{"type":205,"tag":206,"props":228,"children":229},{},[230,232,237,239,243],{"type":210,"value":231},"Use ",{"type":205,"tag":213,"props":233,"children":234},{},[235],{"type":210,"value":236},"Pdf*",{"type":210,"value":238}," components inside PDF templates. In development, using one in an\napplication component reports an error. Move it under ",{"type":205,"tag":213,"props":240,"children":241},{},[242],{"type":210,"value":217},{"type":210,"value":244},", or replace it\nwith an HTML component.",{"type":205,"tag":246,"props":247,"children":249},"h2",{"id":248},"template-discovery",[250],{"type":210,"value":251},"Template discovery",{"type":205,"tag":206,"props":253,"children":254},{},[255],{"type":210,"value":256},"The relative file path becomes the registry key:",{"type":205,"tag":258,"props":259,"children":260},"table",{},[261,280],{"type":205,"tag":262,"props":263,"children":264},"thead",{},[265],{"type":205,"tag":266,"props":267,"children":268},"tr",{},[269,275],{"type":205,"tag":270,"props":271,"children":272},"th",{},[273],{"type":210,"value":274},"Template file",{"type":205,"tag":270,"props":276,"children":277},{},[278],{"type":210,"value":279},"Registry entry",{"type":205,"tag":281,"props":282,"children":283},"tbody",{},[284,304,323],{"type":205,"tag":266,"props":285,"children":286},{},[287,296],{"type":205,"tag":288,"props":289,"children":290},"td",{},[291],{"type":205,"tag":213,"props":292,"children":293},{},[294],{"type":210,"value":295},"pdfs\u002Finvoice.vue",{"type":205,"tag":288,"props":297,"children":298},{},[299],{"type":205,"tag":213,"props":300,"children":301},{},[302],{"type":210,"value":303},"pdf.invoice",{"type":205,"tag":266,"props":305,"children":306},{},[307,315],{"type":205,"tag":288,"props":308,"children":309},{},[310],{"type":205,"tag":213,"props":311,"children":312},{},[313],{"type":210,"value":314},"pdfs\u002Freport.vue",{"type":205,"tag":288,"props":316,"children":317},{},[318],{"type":205,"tag":213,"props":319,"children":320},{},[321],{"type":210,"value":322},"pdf.report",{"type":205,"tag":266,"props":324,"children":325},{},[326,334],{"type":205,"tag":288,"props":327,"children":328},{},[329],{"type":205,"tag":213,"props":330,"children":331},{},[332],{"type":210,"value":333},"pdfs\u002Freports\u002Fmonthly.vue",{"type":205,"tag":288,"props":335,"children":336},{},[337],{"type":205,"tag":213,"props":338,"children":339},{},[340],{"type":210,"value":341},"pdf['reports\u002Fmonthly']",{"type":205,"tag":206,"props":343,"children":344},{},[345],{"type":210,"value":346},"Three directories have a different purpose and do not become registry entries:",{"type":205,"tag":258,"props":348,"children":349},{},[350,366],{"type":205,"tag":262,"props":351,"children":352},{},[353],{"type":205,"tag":266,"props":354,"children":355},{},[356,361],{"type":205,"tag":270,"props":357,"children":358},{},[359],{"type":210,"value":360},"Directory",{"type":205,"tag":270,"props":362,"children":363},{},[364],{"type":210,"value":365},"Contents",{"type":205,"tag":281,"props":367,"children":368},{},[369,385,401],{"type":205,"tag":266,"props":370,"children":371},{},[372,380],{"type":205,"tag":288,"props":373,"children":374},{},[375],{"type":205,"tag":213,"props":376,"children":377},{},[378],{"type":210,"value":379},"pdfs\u002Fcomponents",{"type":205,"tag":288,"props":381,"children":382},{},[383],{"type":210,"value":384},"Local Vue components and shared TypeScript modules",{"type":205,"tag":266,"props":386,"children":387},{},[388,396],{"type":205,"tag":288,"props":389,"children":390},{},[391],{"type":205,"tag":213,"props":392,"children":393},{},[394],{"type":210,"value":395},"pdfs\u002Fassets",{"type":205,"tag":288,"props":397,"children":398},{},[399],{"type":210,"value":400},"Local PNG and JPEG files",{"type":205,"tag":266,"props":402,"children":403},{},[404,412],{"type":205,"tag":288,"props":405,"children":406},{},[407],{"type":205,"tag":213,"props":408,"children":409},{},[410],{"type":210,"value":411},"pdfs\u002Ffonts",{"type":205,"tag":288,"props":413,"children":414},{},[415],{"type":210,"value":416},"Local TTF, OTF, and WOFF2 files",{"type":205,"tag":206,"props":418,"children":419},{},[420],{"type":210,"value":421},"A project template replaces a same-key template from an extended Nuxt layer.\nDuplicate keys in the same layer fail during module setup.",{"type":205,"tag":246,"props":423,"children":425},{"id":424},"one-definition-per-template",[426],{"type":210,"value":427},"One definition per template",{"type":205,"tag":206,"props":429,"children":430},{},[431,433,438,440,445],{"type":210,"value":432},"Each discovered template calls ",{"type":205,"tag":213,"props":434,"children":435},{},[436],{"type":210,"value":437},"definePdf()",{"type":210,"value":439}," exactly once at the top level of\n",{"type":205,"tag":213,"props":441,"children":442},{},[443],{"type":210,"value":444},"\u003Cscript setup>",{"type":210,"value":446},". It declares metadata and development preview data:",{"type":205,"tag":448,"props":449,"children":452},"pre",{"language":450,"filename":314,"class":451},"vue","shiki shiki-themes material-theme-lighter material-theme-palenight dark:material-theme-palenight",[453],{"type":205,"tag":213,"props":454,"children":456},{"class":455},"language-vue",[457,511,513,537,538,556,557,573,574,582,583,586,587,609,610,613,614,644,645,685,686,753,754,825,826,838,839],{"type":205,"tag":458,"props":459,"children":462},"span",{"class":460,"style":461},"line","display: inline",[463,469,475,481,486,491,496,502,506],{"type":205,"tag":458,"props":464,"children":466},{"style":465},"color:#39ADB5;--shiki-dark:#89DDFF",[467],{"type":210,"value":468},"\u003C",{"type":205,"tag":458,"props":470,"children":472},{"style":471},"color:#E53935;--shiki-dark:#F07178",[473],{"type":210,"value":474},"script",{"type":205,"tag":458,"props":476,"children":478},{"style":477},"color:#9C3EDA;--shiki-dark:#C792EA",[479],{"type":210,"value":480}," setup",{"type":205,"tag":458,"props":482,"children":483},{"style":477},[484],{"type":210,"value":485}," lang",{"type":205,"tag":458,"props":487,"children":488},{"style":465},[489],{"type":210,"value":490},"=",{"type":205,"tag":458,"props":492,"children":493},{"style":465},[494],{"type":210,"value":495},"\"",{"type":205,"tag":458,"props":497,"children":499},{"style":498},"color:#91B859;--shiki-dark:#C3E88D",[500],{"type":210,"value":501},"ts",{"type":205,"tag":458,"props":503,"children":504},{"style":465},[505],{"type":210,"value":495},{"type":205,"tag":458,"props":507,"children":508},{"style":465},[509],{"type":210,"value":510},">",{"type":210,"value":512},"\n",{"type":205,"tag":458,"props":514,"children":515},{"class":460,"style":461},[516,521,527,532],{"type":205,"tag":458,"props":517,"children":518},{"style":477},[519],{"type":210,"value":520},"type",{"type":205,"tag":458,"props":522,"children":524},{"style":523},"color:#E2931D;--shiki-dark:#FFCB6B",[525],{"type":210,"value":526}," ReportProps",{"type":205,"tag":458,"props":528,"children":529},{"style":465},[530],{"type":210,"value":531}," =",{"type":205,"tag":458,"props":533,"children":534},{"style":465},[535],{"type":210,"value":536}," {",{"type":210,"value":512},{"type":205,"tag":458,"props":539,"children":540},{"class":460,"style":461},[541,546,551],{"type":205,"tag":458,"props":542,"children":543},{"style":471},[544],{"type":210,"value":545},"  id",{"type":205,"tag":458,"props":547,"children":548},{"style":465},[549],{"type":210,"value":550},":",{"type":205,"tag":458,"props":552,"children":553},{"style":523},[554],{"type":210,"value":555}," string",{"type":210,"value":512},{"type":205,"tag":458,"props":558,"children":559},{"class":460,"style":461},[560,565,569],{"type":205,"tag":458,"props":561,"children":562},{"style":471},[563],{"type":210,"value":564},"  title",{"type":205,"tag":458,"props":566,"children":567},{"style":465},[568],{"type":210,"value":550},{"type":205,"tag":458,"props":570,"children":571},{"style":523},[572],{"type":210,"value":555},{"type":210,"value":512},{"type":205,"tag":458,"props":575,"children":576},{"class":460,"style":461},[577],{"type":205,"tag":458,"props":578,"children":579},{"style":465},[580],{"type":210,"value":581},"}",{"type":210,"value":512},{"type":205,"tag":458,"props":584,"children":585},{"class":460,"style":461},[],{"type":210,"value":512},{"type":205,"tag":458,"props":588,"children":589},{"class":460,"style":461},[590,595,599,604],{"type":205,"tag":458,"props":591,"children":592},{"style":523},[593],{"type":210,"value":594},"defineProps",{"type":205,"tag":458,"props":596,"children":597},{"style":465},[598],{"type":210,"value":468},{"type":205,"tag":458,"props":600,"children":601},{"style":523},[602],{"type":210,"value":603},"ReportProps",{"type":205,"tag":458,"props":605,"children":606},{"style":465},[607],{"type":210,"value":608},">()",{"type":210,"value":512},{"type":205,"tag":458,"props":611,"children":612},{"class":460,"style":461},[],{"type":210,"value":512},{"type":205,"tag":458,"props":615,"children":616},{"class":460,"style":461},[617,621,625,629,633,639],{"type":205,"tag":458,"props":618,"children":619},{"style":523},[620],{"type":210,"value":132},{"type":205,"tag":458,"props":622,"children":623},{"style":465},[624],{"type":210,"value":468},{"type":205,"tag":458,"props":626,"children":627},{"style":523},[628],{"type":210,"value":603},{"type":205,"tag":458,"props":630,"children":631},{"style":465},[632],{"type":210,"value":510},{"type":205,"tag":458,"props":634,"children":636},{"style":635},"color:#90A4AE;--shiki-dark:#BABED8",[637],{"type":210,"value":638},"(",{"type":205,"tag":458,"props":640,"children":641},{"style":465},[642],{"type":210,"value":643},"{",{"type":210,"value":512},{"type":205,"tag":458,"props":646,"children":647},{"class":460,"style":461},[648,652,656,661,666,670,675,680],{"type":205,"tag":458,"props":649,"children":650},{"style":471},[651],{"type":210,"value":564},{"type":205,"tag":458,"props":653,"children":654},{"style":465},[655],{"type":210,"value":550},{"type":205,"tag":458,"props":657,"children":658},{"style":523},[659],{"type":210,"value":660}," props",{"type":205,"tag":458,"props":662,"children":663},{"style":477},[664],{"type":210,"value":665}," =>",{"type":205,"tag":458,"props":667,"children":668},{"style":523},[669],{"type":210,"value":660},{"type":205,"tag":458,"props":671,"children":672},{"style":465},[673],{"type":210,"value":674},".",{"type":205,"tag":458,"props":676,"children":677},{"style":523},[678],{"type":210,"value":679},"title",{"type":205,"tag":458,"props":681,"children":682},{"style":465},[683],{"type":210,"value":684},",",{"type":210,"value":512},{"type":205,"tag":458,"props":687,"children":688},{"class":460,"style":461},[689,694,698,702,706,711,716,721,726,730,735,739,744,749],{"type":205,"tag":458,"props":690,"children":691},{"style":471},[692],{"type":210,"value":693},"  filename",{"type":205,"tag":458,"props":695,"children":696},{"style":465},[697],{"type":210,"value":550},{"type":205,"tag":458,"props":699,"children":700},{"style":523},[701],{"type":210,"value":660},{"type":205,"tag":458,"props":703,"children":704},{"style":477},[705],{"type":210,"value":665},{"type":205,"tag":458,"props":707,"children":708},{"style":465},[709],{"type":210,"value":710}," `",{"type":205,"tag":458,"props":712,"children":713},{"style":498},[714],{"type":210,"value":715},"report-",{"type":205,"tag":458,"props":717,"children":718},{"style":465},[719],{"type":210,"value":720},"${",{"type":205,"tag":458,"props":722,"children":723},{"style":523},[724],{"type":210,"value":725},"props",{"type":205,"tag":458,"props":727,"children":728},{"style":465},[729],{"type":210,"value":674},{"type":205,"tag":458,"props":731,"children":732},{"style":523},[733],{"type":210,"value":734},"id",{"type":205,"tag":458,"props":736,"children":737},{"style":465},[738],{"type":210,"value":581},{"type":205,"tag":458,"props":740,"children":741},{"style":498},[742],{"type":210,"value":743},".pdf",{"type":205,"tag":458,"props":745,"children":746},{"style":465},[747],{"type":210,"value":748},"`",{"type":205,"tag":458,"props":750,"children":751},{"style":465},[752],{"type":210,"value":684},{"type":210,"value":512},{"type":205,"tag":458,"props":755,"children":756},{"class":460,"style":461},[757,762,766,770,775,779,784,789,794,798,803,807,811,816,820],{"type":205,"tag":458,"props":758,"children":759},{"style":471},[760],{"type":210,"value":761},"  sampleData",{"type":205,"tag":458,"props":763,"children":764},{"style":465},[765],{"type":210,"value":550},{"type":205,"tag":458,"props":767,"children":768},{"style":465},[769],{"type":210,"value":536},{"type":205,"tag":458,"props":771,"children":772},{"style":471},[773],{"type":210,"value":774}," id",{"type":205,"tag":458,"props":776,"children":777},{"style":465},[778],{"type":210,"value":550},{"type":205,"tag":458,"props":780,"children":781},{"style":465},[782],{"type":210,"value":783}," '",{"type":205,"tag":458,"props":785,"children":786},{"style":498},[787],{"type":210,"value":788},"sample",{"type":205,"tag":458,"props":790,"children":791},{"style":465},[792],{"type":210,"value":793},"'",{"type":205,"tag":458,"props":795,"children":796},{"style":465},[797],{"type":210,"value":684},{"type":205,"tag":458,"props":799,"children":800},{"style":471},[801],{"type":210,"value":802}," title",{"type":205,"tag":458,"props":804,"children":805},{"style":465},[806],{"type":210,"value":550},{"type":205,"tag":458,"props":808,"children":809},{"style":465},[810],{"type":210,"value":783},{"type":205,"tag":458,"props":812,"children":813},{"style":498},[814],{"type":210,"value":815},"Sample report",{"type":205,"tag":458,"props":817,"children":818},{"style":465},[819],{"type":210,"value":793},{"type":205,"tag":458,"props":821,"children":822},{"style":465},[823],{"type":210,"value":824}," },",{"type":210,"value":512},{"type":205,"tag":458,"props":827,"children":828},{"class":460,"style":461},[829,833],{"type":205,"tag":458,"props":830,"children":831},{"style":465},[832],{"type":210,"value":581},{"type":205,"tag":458,"props":834,"children":835},{"style":635},[836],{"type":210,"value":837},")",{"type":210,"value":512},{"type":205,"tag":458,"props":840,"children":841},{"class":460,"style":461},[842,847,851],{"type":205,"tag":458,"props":843,"children":844},{"style":465},[845],{"type":210,"value":846},"\u003C\u002F",{"type":205,"tag":458,"props":848,"children":849},{"style":471},[850],{"type":210,"value":474},{"type":205,"tag":458,"props":852,"children":853},{"style":465},[854],{"type":210,"value":510},{"type":205,"tag":206,"props":856,"children":857},{},[858,862,864,869,871,876],{"type":205,"tag":213,"props":859,"children":860},{},[861],{"type":210,"value":679},{"type":210,"value":863}," and ",{"type":205,"tag":213,"props":865,"children":866},{},[867],{"type":210,"value":868},"filename",{"type":210,"value":870}," can be strings or synchronous functions of the render\nprops. ",{"type":205,"tag":213,"props":872,"children":873},{},[874],{"type":210,"value":875},"sampleData",{"type":210,"value":877}," and named scenarios are removed from production output.\nThey never become a server data source.",{"type":205,"tag":206,"props":879,"children":880},{},[881,883,890],{"type":210,"value":882},"The ",{"type":205,"tag":884,"props":885,"children":887},"a",{"href":886},"$docs\u002Freference\u002Fdefine-pdf",[888],{"type":210,"value":889},"definePdf reference",{"type":210,"value":891}," lists every option and\nits metadata precedence.",{"type":205,"tag":246,"props":893,"children":895},{"id":894},"typed-rendering",[896],{"type":210,"value":897},"Typed rendering",{"type":205,"tag":206,"props":899,"children":900},{},[901],{"type":210,"value":902},"Import the generated registry from server code:",{"type":205,"tag":448,"props":904,"children":906},{"language":501,"filename":905,"class":451},"server\u002Fapi\u002Freport.get.ts",[907],{"type":205,"tag":213,"props":908,"children":910},{"class":909},"language-ts",[911,951,952,955,956,997,998,1050,1051,1080,1081,1110,1111,1123,1124,1127,1128,1154,1155],{"type":205,"tag":458,"props":912,"children":913},{"class":460,"style":461},[914,920,924,929,934,939,943,947],{"type":205,"tag":458,"props":915,"children":917},{"style":916},"color:#39ADB5;--shiki-light-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[918],{"type":210,"value":919},"import",{"type":205,"tag":458,"props":921,"children":922},{"style":465},[923],{"type":210,"value":536},{"type":205,"tag":458,"props":925,"children":926},{"style":635},[927],{"type":210,"value":928}," pdf",{"type":205,"tag":458,"props":930,"children":931},{"style":465},[932],{"type":210,"value":933}," }",{"type":205,"tag":458,"props":935,"children":936},{"style":916},[937],{"type":210,"value":938}," from",{"type":205,"tag":458,"props":940,"children":941},{"style":465},[942],{"type":210,"value":783},{"type":205,"tag":458,"props":944,"children":945},{"style":498},[946],{"type":210,"value":224},{"type":205,"tag":458,"props":948,"children":949},{"style":465},[950],{"type":210,"value":793},{"type":210,"value":512},{"type":205,"tag":458,"props":953,"children":954},{"class":460,"style":461},[],{"type":210,"value":512},{"type":205,"tag":458,"props":957,"children":958},{"class":460,"style":461},[959,964,969,975,979,984,989,993],{"type":205,"tag":458,"props":960,"children":961},{"style":916},[962],{"type":210,"value":963},"export",{"type":205,"tag":458,"props":965,"children":966},{"style":916},[967],{"type":210,"value":968}," default",{"type":205,"tag":458,"props":970,"children":972},{"style":971},"color:#6182B8;--shiki-dark:#82AAFF",[973],{"type":210,"value":974}," defineEventHandler",{"type":205,"tag":458,"props":976,"children":977},{"style":635},[978],{"type":210,"value":638},{"type":205,"tag":458,"props":980,"children":981},{"style":477},[982],{"type":210,"value":983},"async",{"type":205,"tag":458,"props":985,"children":986},{"style":465},[987],{"type":210,"value":988}," ()",{"type":205,"tag":458,"props":990,"children":991},{"style":477},[992],{"type":210,"value":665},{"type":205,"tag":458,"props":994,"children":995},{"style":465},[996],{"type":210,"value":536},{"type":210,"value":512},{"type":205,"tag":458,"props":999,"children":1000},{"class":460,"style":461},[1001,1006,1011,1015,1020,1024,1028,1033,1037,1042,1046],{"type":205,"tag":458,"props":1002,"children":1003},{"style":477},[1004],{"type":210,"value":1005},"  const",{"type":205,"tag":458,"props":1007,"children":1008},{"style":635},[1009],{"type":210,"value":1010}," result",{"type":205,"tag":458,"props":1012,"children":1013},{"style":465},[1014],{"type":210,"value":531},{"type":205,"tag":458,"props":1016,"children":1017},{"style":916},[1018],{"type":210,"value":1019}," await",{"type":205,"tag":458,"props":1021,"children":1022},{"style":635},[1023],{"type":210,"value":928},{"type":205,"tag":458,"props":1025,"children":1026},{"style":465},[1027],{"type":210,"value":674},{"type":205,"tag":458,"props":1029,"children":1030},{"style":635},[1031],{"type":210,"value":1032},"report",{"type":205,"tag":458,"props":1034,"children":1035},{"style":465},[1036],{"type":210,"value":674},{"type":205,"tag":458,"props":1038,"children":1039},{"style":971},[1040],{"type":210,"value":1041},"render",{"type":205,"tag":458,"props":1043,"children":1044},{"style":471},[1045],{"type":210,"value":638},{"type":205,"tag":458,"props":1047,"children":1048},{"style":465},[1049],{"type":210,"value":643},{"type":210,"value":512},{"type":205,"tag":458,"props":1052,"children":1053},{"class":460,"style":461},[1054,1059,1063,1067,1072,1076],{"type":205,"tag":458,"props":1055,"children":1056},{"style":471},[1057],{"type":210,"value":1058},"    id",{"type":205,"tag":458,"props":1060,"children":1061},{"style":465},[1062],{"type":210,"value":550},{"type":205,"tag":458,"props":1064,"children":1065},{"style":465},[1066],{"type":210,"value":783},{"type":205,"tag":458,"props":1068,"children":1069},{"style":498},[1070],{"type":210,"value":1071},"Q2-2026",{"type":205,"tag":458,"props":1073,"children":1074},{"style":465},[1075],{"type":210,"value":793},{"type":205,"tag":458,"props":1077,"children":1078},{"style":465},[1079],{"type":210,"value":684},{"type":210,"value":512},{"type":205,"tag":458,"props":1082,"children":1083},{"class":460,"style":461},[1084,1089,1093,1097,1102,1106],{"type":205,"tag":458,"props":1085,"children":1086},{"style":471},[1087],{"type":210,"value":1088},"    title",{"type":205,"tag":458,"props":1090,"children":1091},{"style":465},[1092],{"type":210,"value":550},{"type":205,"tag":458,"props":1094,"children":1095},{"style":465},[1096],{"type":210,"value":783},{"type":205,"tag":458,"props":1098,"children":1099},{"style":498},[1100],{"type":210,"value":1101},"Quarterly report",{"type":205,"tag":458,"props":1103,"children":1104},{"style":465},[1105],{"type":210,"value":793},{"type":205,"tag":458,"props":1107,"children":1108},{"style":465},[1109],{"type":210,"value":684},{"type":210,"value":512},{"type":205,"tag":458,"props":1112,"children":1113},{"class":460,"style":461},[1114,1119],{"type":205,"tag":458,"props":1115,"children":1116},{"style":465},[1117],{"type":210,"value":1118},"  }",{"type":205,"tag":458,"props":1120,"children":1121},{"style":471},[1122],{"type":210,"value":837},{"type":210,"value":512},{"type":205,"tag":458,"props":1125,"children":1126},{"class":460,"style":461},[],{"type":210,"value":512},{"type":205,"tag":458,"props":1129,"children":1130},{"class":460,"style":461},[1131,1136,1140,1144,1149],{"type":205,"tag":458,"props":1132,"children":1133},{"style":916},[1134],{"type":210,"value":1135},"  return",{"type":205,"tag":458,"props":1137,"children":1138},{"style":635},[1139],{"type":210,"value":1010},{"type":205,"tag":458,"props":1141,"children":1142},{"style":465},[1143],{"type":210,"value":674},{"type":205,"tag":458,"props":1145,"children":1146},{"style":971},[1147],{"type":210,"value":1148},"response",{"type":205,"tag":458,"props":1150,"children":1151},{"style":471},[1152],{"type":210,"value":1153},"()",{"type":210,"value":512},{"type":205,"tag":458,"props":1156,"children":1157},{"class":460,"style":461},[1158,1162],{"type":205,"tag":458,"props":1159,"children":1160},{"style":465},[1161],{"type":210,"value":581},{"type":205,"tag":458,"props":1163,"children":1164},{"style":635},[1165],{"type":210,"value":837},{"type":205,"tag":206,"props":1167,"children":1168},{},[1169,1171,1176,1178,1183],{"type":210,"value":1170},"The registry infers the required props from ",{"type":205,"tag":213,"props":1172,"children":1173},{},[1174],{"type":210,"value":1175},"defineProps\u003CReportProps>()",{"type":210,"value":1177},". Load\nrequest, database, and API data before ",{"type":205,"tag":213,"props":1179,"children":1180},{},[1181],{"type":210,"value":1182},"render()",{"type":210,"value":1184},", then pass the resolved values\nas props.",{"type":205,"tag":206,"props":1186,"children":1187},{},[1188,1189,1194,1196,1202],{"type":210,"value":231},{"type":205,"tag":213,"props":1190,"children":1191},{},[1192],{"type":210,"value":1193},"renderPdf(key, props)",{"type":210,"value":1195}," when the template key is only known at runtime. The\n",{"type":205,"tag":884,"props":1197,"children":1199},{"href":1198},"$docs\u002Freference\u002Fregistry",[1200],{"type":210,"value":1201},"registry reference",{"type":210,"value":1203}," documents its overloads, result\nmethods, and errors.",{"title":1205,"searchDepth":1206,"depth":1206,"links":1207},"",4,[1208,1210,1211],{"id":248,"depth":1209,"text":251},2,{"id":424,"depth":1209,"text":427},{"id":894,"depth":1209,"text":897},"markdown","docs",{"source":1215,"path":1216,"stem":1217,"dir":1218,"extension":1219},"content","docs\u002F2.learn\u002F1.templates-and-registry.md","docs\u002F2.learn\u002F1.templates-and-registry","learn","md",{"$docs\u002Freference\u002Fdefine-pdf":136,"$docs\u002Freference\u002Fregistry":142},{"requestedPath":36,"resolvedPath":36,"alternates":1222},[],{"requested":1224,"resolved":1225,"usedFallback":9},{},{"locale":8},{"previous":1227,"next":1228},{"title":21,"id":22,"canonicalKey":23,"locale":8,"draft":9,"path":24},{"title":38,"id":39,"canonicalKey":40,"locale":8,"draft":9,"path":42},{"left":1230,"top":1230,"width":1231,"height":1232,"rotate":1230,"vFlip":9,"hFlip":9,"body":1233},0,256,221,"\u003Cpath fill=\"#41b883\" d=\"M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0z\"\u002F>\u003Cpath fill=\"#41b883\" d=\"m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0z\"\u002F>\u003Cpath fill=\"#35495e\" d=\"M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0z\"\u002F>",{"left":1230,"top":1230,"width":1231,"height":1231,"rotate":1230,"vFlip":9,"hFlip":9,"body":1235},"\u003Cpath fill=\"#3178c6\" d=\"M20 0h216c11.046 0 20 8.954 20 20v216c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20V20C0 8.954 8.954 0 20 0\"\u002F>\u003Cpath fill=\"#fff\" d=\"M150.518 200.475v27.62q6.738 3.453 15.938 5.179T185.849 235q9.934 0 18.874-1.899t15.678-6.257q6.738-4.359 10.669-11.394q3.93-7.033 3.93-17.391q0-7.51-2.246-13.163a30.8 30.8 0 0 0-6.479-10.055q-4.232-4.402-10.149-7.898t-13.347-6.602q-5.442-2.245-9.761-4.359t-7.342-4.316q-3.024-2.2-4.665-4.661t-1.641-5.567q0-2.848 1.468-5.135q1.469-2.288 4.147-3.927t6.565-2.547q3.887-.906 8.638-.906q3.456 0 7.299.518q3.844.517 7.732 1.597a54 54 0 0 1 7.558 2.719a41.7 41.7 0 0 1 6.781 3.797v-25.807q-6.306-2.417-13.778-3.582T198.633 107q-9.847 0-18.658 2.115q-8.811 2.114-15.506 6.602q-6.694 4.49-10.582 11.437Q150 134.102 150 143.769q0 12.342 7.127 21.06t21.638 14.759a292 292 0 0 1 10.625 4.575q4.924 2.244 8.509 4.66t5.658 5.265t2.073 6.474a9.9 9.9 0 0 1-1.296 4.963q-1.295 2.287-3.93 3.97t-6.565 2.632t-9.2.95q-8.983 0-17.794-3.151t-16.327-9.451m-46.036-68.733H140V109H41v22.742h35.345V233h28.137z\"\u002F>",{"left":1230,"top":1230,"width":1237,"height":1237,"rotate":1230,"vFlip":9,"hFlip":9,"body":1238},24,"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\"\u002F>\u003Cpath d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"\u002F>\u003C\u002Fg>",1789319011790]