[{"data":1,"prerenderedAt":560},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:9ayP-f57TUI9oUk1lkVrffD737gQSOehPKmzBZOzzJo":133,"content-page-surround:docs:9ayP-f57TUI9oUk1lkVrffD737gQSOehPKmzBZOzzJo":545,"i-logos:nuxt-icon":550,"i-lucide:terminal":555,"i-lucide:clipboard":558},[4,25,73,121,127],{"title":5,"id":6,"canonicalKey":7,"locale":8,"draft":9,"icon":10,"sidebar":11,"path":12,"children":13},"Getting Started","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},"Installation","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},"Quickstart","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},"Guides","2","content:docs:2.guides:.navigation.yml","lucide:compass",[31,37,43,49,55,61,67],{"title":32,"id":33,"canonicalKey":34,"locale":8,"draft":9,"icon":35,"path":36},"Authoring","content:docs:2.guides:1.authoring.md","2\u002F1","lucide:component","\u002Fdocs\u002Fguides\u002Fauthoring",{"title":38,"id":39,"canonicalKey":40,"locale":8,"draft":9,"icon":41,"path":42},"Contents, links & bookmarks","content:docs:2.guides:2.contents-links-bookmarks.md","2\u002F2","lucide:list-tree","\u002Fdocs\u002Fguides\u002Fcontents-links-bookmarks",{"title":44,"id":45,"canonicalKey":46,"locale":8,"draft":9,"icon":47,"path":48},"Images & fonts","content:docs:2.guides:3.images-and-fonts.md","2\u002F3","lucide:image","\u002Fdocs\u002Fguides\u002Fimages-and-fonts",{"title":50,"id":51,"canonicalKey":52,"locale":8,"draft":9,"icon":53,"path":54},"SVG graphics","content:docs:2.guides:4.svg-graphics.md","2\u002F4","lucide:shapes","\u002Fdocs\u002Fguides\u002Fsvg-graphics",{"title":56,"id":57,"canonicalKey":58,"locale":8,"draft":9,"icon":59,"path":60},"Errors & debugging","content:docs:2.guides:5.errors-and-debugging.md","2\u002F5","lucide:bug","\u002Fdocs\u002Fguides\u002Ferrors-and-debugging",{"title":62,"id":63,"canonicalKey":64,"locale":8,"draft":9,"icon":65,"path":66},"Testing your PDFs","content:docs:2.guides:6.testing.md","2\u002F6","lucide:flask-conical","\u002Fdocs\u002Fguides\u002Ftesting",{"title":68,"id":69,"canonicalKey":70,"locale":8,"draft":9,"icon":71,"path":72},"Production recipes","content:docs:2.guides:7.recipes.md","2\u002F7","lucide:notebook-tabs","\u002Fdocs\u002Fguides\u002Frecipes",{"title":74,"page":9,"canonicalKey":75,"locale":8,"id":76,"draft":9,"icon":77,"sidebar":11,"children":78},"Reference","3","content:docs:3.reference:.navigation.yml","lucide:book-marked",[79,85,91,97,103,109,115],{"title":80,"id":81,"canonicalKey":82,"locale":8,"draft":9,"icon":83,"path":84},"definePdf","content:docs:3.reference:1.define-pdf.md","3\u002F1","lucide:settings-2","\u002Fdocs\u002Freference\u002Fdefine-pdf",{"title":86,"id":87,"canonicalKey":88,"locale":8,"draft":9,"icon":89,"path":90},"The #pdf registry","content:docs:3.reference:2.registry.md","3\u002F2","lucide:braces","\u002Fdocs\u002Freference\u002Fregistry",{"title":92,"id":93,"canonicalKey":94,"locale":8,"draft":9,"icon":95,"path":96},"Module options","content:docs:3.reference:3.module-options.md","3\u002F3","lucide:sliders","\u002Fdocs\u002Freference\u002Fmodule-options",{"title":98,"id":99,"canonicalKey":100,"locale":8,"draft":9,"icon":101,"path":102},"Primitives","content:docs:3.reference:4.primitives.md","3\u002F4","lucide:box","\u002Fdocs\u002Freference\u002Fprimitives",{"title":104,"id":105,"canonicalKey":106,"locale":8,"draft":9,"icon":107,"path":108},"Composables","content:docs:3.reference:5.composables.md","3\u002F5","lucide:function-square","\u002Fdocs\u002Freference\u002Fcomposables",{"title":110,"id":111,"canonicalKey":112,"locale":8,"draft":9,"icon":113,"path":114},"Test utilities","content:docs:3.reference:6.test-utilities.md","3\u002F6","lucide:test-tube","\u002Fdocs\u002Freference\u002Ftest-utilities",{"title":116,"id":117,"canonicalKey":118,"locale":8,"draft":9,"icon":119,"path":120},"Styles","content:docs:3.reference:7.styles.md","3\u002F7","lucide:palette","\u002Fdocs\u002Freference\u002Fstyles",{"title":122,"id":123,"canonicalKey":124,"locale":8,"draft":9,"icon":125,"sidebar":11,"path":126},"Conformance & Philosophy","content:docs:4.conformance:.navigation.yml","4","lucide:scale","\u002Fdocs\u002Fconformance",{"title":128,"id":129,"canonicalKey":130,"locale":8,"draft":9,"icon":131,"sidebar":11,"path":132},"Examples","content:docs:5.examples:.navigation.yml","5","lucide:layout-grid","\u002Fdocs\u002Fexamples",{"title":15,"description":134,"icon":18,"body":135,"type":531,"id":16,"canonicalKey":17,"draft":9,"partial":9,"locale":8,"collection":532,"navigationFile":9,"file":533,"resolvedRefs":539,"route":540,"resolution":542},"Requirements and the one-line module install for an existing Nuxt 4 app.",{"type":136,"children":137,"toc":523},"root",[138,146,153,244,257,263,297,309,377,403,412,445,451,477,510],{"type":139,"tag":140,"props":141,"children":142},"element","p",{},[143],{"type":144,"value":145},"text","Nuxt PDF is a Nuxt module. It installs into an existing Nuxt 4 application and\nadds server-side PDF rendering; there is no separate CLI or service.",{"type":139,"tag":147,"props":148,"children":150},"h2",{"id":149},"requirements",[151],{"type":144,"value":152},"Requirements",{"type":139,"tag":154,"props":155,"children":156},"table",{},[157,176],{"type":139,"tag":158,"props":159,"children":160},"thead",{},[161],{"type":139,"tag":162,"props":163,"children":164},"tr",{},[165,171],{"type":139,"tag":166,"props":167,"children":168},"th",{},[169],{"type":144,"value":170},"Layer",{"type":139,"tag":166,"props":172,"children":173},{},[174],{"type":144,"value":175},"Supported",{"type":139,"tag":177,"props":178,"children":179},"tbody",{},[180,212,228],{"type":139,"tag":162,"props":181,"children":182},{},[183,189],{"type":139,"tag":184,"props":185,"children":186},"td",{},[187],{"type":144,"value":188},"Node.js",{"type":139,"tag":184,"props":190,"children":191},{},[192,198,200,205,207],{"type":139,"tag":193,"props":194,"children":195},"code",{},[196],{"type":144,"value":197},"^22.14.0",{"type":144,"value":199},", ",{"type":139,"tag":193,"props":201,"children":202},{},[203],{"type":144,"value":204},"^24.0.0",{"type":144,"value":206},", or ",{"type":139,"tag":193,"props":208,"children":209},{},[210],{"type":144,"value":211},"^26.0.0",{"type":139,"tag":162,"props":213,"children":214},{},[215,220],{"type":139,"tag":184,"props":216,"children":217},{},[218],{"type":144,"value":219},"Nuxt",{"type":139,"tag":184,"props":221,"children":222},{},[223],{"type":139,"tag":193,"props":224,"children":225},{},[226],{"type":144,"value":227},"^4.4.8",{"type":139,"tag":162,"props":229,"children":230},{},[231,236],{"type":139,"tag":184,"props":232,"children":233},{},[234],{"type":144,"value":235},"Vue",{"type":139,"tag":184,"props":237,"children":238},{},[239],{"type":139,"tag":193,"props":240,"children":241},{},[242],{"type":144,"value":243},"^3.5.0",{"type":139,"tag":140,"props":245,"children":246},{},[247,249,255],{"type":144,"value":248},"Nuxt 3, Node 20, browser rendering, and edge rendering are ",{"type":139,"tag":250,"props":251,"children":252},"strong",{},[253],{"type":144,"value":254},"not",{"type":144,"value":256}," claimed by\nthe current alpha. The engine is Node server-only.",{"type":139,"tag":147,"props":258,"children":260},{"id":259},"install-the-module",[261],{"type":144,"value":262},"Install the module",{"type":139,"tag":264,"props":265,"children":270},"pre",{"language":266,"filename":267,"class":268,"tabindex":269},"bash","pnpm","shiki shiki-themes light-plus dark-plus dark:dark-plus","0",[271],{"type":139,"tag":193,"props":272,"children":274},{"class":273},"language-bash",[275],{"type":139,"tag":276,"props":277,"children":280},"span",{"class":278,"style":279},"line","display: inline",[281,286,292],{"type":139,"tag":276,"props":282,"children":284},{"style":283},"color:#795E26;--shiki-dark:#DCDCAA",[285],{"type":144,"value":267},{"type":139,"tag":276,"props":287,"children":289},{"style":288},"color:#A31515;--shiki-dark:#CE9178",[290],{"type":144,"value":291}," add",{"type":139,"tag":276,"props":293,"children":294},{"style":288},[295],{"type":144,"value":296}," @lupinum\u002Fnuxt-pdf",{"type":139,"tag":140,"props":298,"children":299},{},[300,302,307],{"type":144,"value":301},"Add it to ",{"type":139,"tag":193,"props":303,"children":304},{},[305],{"type":144,"value":306},"nuxt.config.ts",{"type":144,"value":308},":",{"type":139,"tag":264,"props":310,"children":312},{"language":311,"filename":306,"class":268,"tabindex":269},"ts",[313],{"type":139,"tag":193,"props":314,"children":316},{"class":315},"language-ts",[317,342,344,368,369],{"type":139,"tag":276,"props":318,"children":319},{"class":278,"style":279},[320,326,331,336],{"type":139,"tag":276,"props":321,"children":323},{"style":322},"color:#AF00DB;--shiki-dark:#C586C0",[324],{"type":144,"value":325},"export",{"type":139,"tag":276,"props":327,"children":328},{"style":322},[329],{"type":144,"value":330}," default",{"type":139,"tag":276,"props":332,"children":333},{"style":283},[334],{"type":144,"value":335}," defineNuxtConfig",{"type":139,"tag":276,"props":337,"children":339},{"style":338},"color:#000000;--shiki-dark:#D4D4D4",[340],{"type":144,"value":341},"({",{"type":144,"value":343},"\n",{"type":139,"tag":276,"props":345,"children":346},{"class":278,"style":279},[347,353,358,363],{"type":139,"tag":276,"props":348,"children":350},{"style":349},"color:#001080;--shiki-dark:#9CDCFE",[351],{"type":144,"value":352},"  modules:",{"type":139,"tag":276,"props":354,"children":355},{"style":338},[356],{"type":144,"value":357}," [",{"type":139,"tag":276,"props":359,"children":360},{"style":288},[361],{"type":144,"value":362},"\"@lupinum\u002Fnuxt-pdf\"",{"type":139,"tag":276,"props":364,"children":365},{"style":338},[366],{"type":144,"value":367},"],",{"type":144,"value":343},{"type":139,"tag":276,"props":370,"children":371},{"class":278,"style":279},[372],{"type":139,"tag":276,"props":373,"children":374},{"style":338},[375],{"type":144,"value":376},"});",{"type":139,"tag":140,"props":378,"children":379},{},[380,382,387,389,394,396,401],{"type":144,"value":381},"The module discovers templates under ",{"type":139,"tag":193,"props":383,"children":384},{},[385],{"type":144,"value":386},"pdfs\u002F",{"type":144,"value":388}," and generates the typed ",{"type":139,"tag":193,"props":390,"children":391},{},[392],{"type":144,"value":393},"#pdf",{"type":144,"value":395},"\nregistry. In development, it also mounts preview routes under ",{"type":139,"tag":193,"props":397,"children":398},{},[399],{"type":144,"value":400},"\u002F_pdf",{"type":144,"value":402},".",{"type":139,"tag":140,"props":404,"children":405},{},[406,410],{"type":139,"tag":193,"props":407,"children":408},{},[409],{"type":144,"value":393},{"type":144,"value":411}," is a Nitro server module. The production client bundle contains neither\nthe template SFCs nor the PDF engine, and the production server artifact omits\nthe development preview registry, sample data, and scenarios.",{"type":139,"tag":413,"props":414,"children":416},"info",{"icon":415},"lucide:info",[417,419,424,426,431,433,437,439,443],{"type":144,"value":418},"After first enabling the module, restart ",{"type":139,"tag":193,"props":420,"children":421},{},[422],{"type":144,"value":423},"nuxt dev",{"type":144,"value":425}," (or run ",{"type":139,"tag":193,"props":427,"children":428},{},[429],{"type":144,"value":430},"nuxt prepare",{"type":144,"value":432},") once\nso Nuxt writes the typed ",{"type":139,"tag":193,"props":434,"children":435},{},[436],{"type":144,"value":393},{"type":144,"value":438}," registry. Until that runs, ",{"type":139,"tag":193,"props":440,"children":441},{},[442],{"type":144,"value":393},{"type":144,"value":444}," imports have no\ntypes.",{"type":139,"tag":147,"props":446,"children":448},{"id":447},"optional-test-dependencies",[449],{"type":144,"value":450},"Optional test dependencies",{"type":139,"tag":140,"props":452,"children":453},{},[454,456,461,463,468,470,475],{"type":144,"value":455},"The testing utilities in ",{"type":139,"tag":193,"props":457,"children":458},{},[459],{"type":144,"value":460},"@lupinum\u002Fnuxt-pdf\u002Ftest",{"type":144,"value":462}," parse and rasterize real\noutput through ",{"type":139,"tag":193,"props":464,"children":465},{},[466],{"type":144,"value":467},"pdfjs-dist",{"type":144,"value":469}," and ",{"type":139,"tag":193,"props":471,"children":472},{},[473],{"type":144,"value":474},"@napi-rs\u002Fcanvas",{"type":144,"value":476},". They are loaded lazily and are\nnot runtime dependencies, so install them only when you write PDF tests:",{"type":139,"tag":264,"props":478,"children":479},{"language":266,"filename":267,"class":268,"tabindex":269},[480],{"type":139,"tag":193,"props":481,"children":482},{"class":273},[483],{"type":139,"tag":276,"props":484,"children":485},{"class":278,"style":279},[486,490,494,500,505],{"type":139,"tag":276,"props":487,"children":488},{"style":283},[489],{"type":144,"value":267},{"type":139,"tag":276,"props":491,"children":492},{"style":288},[493],{"type":144,"value":291},{"type":139,"tag":276,"props":495,"children":497},{"style":496},"color:#0000FF;--shiki-dark:#569CD6",[498],{"type":144,"value":499}," -D",{"type":139,"tag":276,"props":501,"children":502},{"style":288},[503],{"type":144,"value":504}," pdfjs-dist",{"type":139,"tag":276,"props":506,"children":507},{"style":288},[508],{"type":144,"value":509}," @napi-rs\u002Fcanvas",{"type":139,"tag":140,"props":511,"children":512},{},[513,515,521],{"type":144,"value":514},"See ",{"type":139,"tag":516,"props":517,"children":519},"a",{"href":518},"$docs\u002Fguides\u002Ftesting",[520],{"type":144,"value":62},{"type":144,"value":522}," for the full workflow.",{"title":524,"searchDepth":525,"depth":525,"links":526},"",4,[527,529,530],{"id":149,"depth":528,"text":152},2,{"id":259,"depth":528,"text":262},{"id":447,"depth":528,"text":450},"markdown","docs",{"source":534,"path":535,"stem":536,"dir":537,"extension":538},"content","docs\u002F1.getting-started\u002F2.installation.md","docs\u002F1.getting-started\u002F2.installation","getting-started","md",{"$docs\u002Fguides\u002Ftesting":66},{"requestedPath":19,"resolvedPath":19,"alternates":541},[],{"requested":543,"resolved":544,"usedFallback":9},{},{"locale":8},{"previous":546,"next":549},{"title":5,"id":6,"canonicalKey":7,"locale":8,"draft":9,"path":12,"children":547},[548,549],{"title":15,"id":16,"canonicalKey":17,"locale":8,"draft":9,"path":19},{"title":21,"id":22,"canonicalKey":23,"locale":8,"draft":9,"path":24},{"left":551,"top":551,"width":552,"height":553,"rotate":551,"vFlip":9,"hFlip":9,"body":554},0,256,168,"\u003Cpath fill=\"#00dc82\" d=\"M143.618 167.029h95.166c3.023 0 5.992-.771 8.61-2.237a16.96 16.96 0 0 0 6.302-6.115a16.3 16.3 0 0 0 2.304-8.352c0-2.932-.799-5.811-2.312-8.35L189.778 34.6a16.97 16.97 0 0 0-6.301-6.113a17.6 17.6 0 0 0-8.608-2.238c-3.023 0-5.991.772-8.609 2.238a16.96 16.96 0 0 0-6.3 6.113l-16.342 27.473l-31.95-53.724a17 17 0 0 0-6.304-6.112A17.64 17.64 0 0 0 96.754 0c-3.022 0-5.992.772-8.61 2.237a17 17 0 0 0-6.303 6.112L2.31 141.975a16.3 16.3 0 0 0-2.31 8.35c0 2.932.793 5.813 2.304 8.352a16.96 16.96 0 0 0 6.302 6.115a17.6 17.6 0 0 0 8.61 2.237h59.737c23.669 0 41.123-10.084 53.134-29.758l29.159-48.983l15.618-26.215l46.874 78.742h-62.492zm-67.64-26.24l-41.688-.01L96.782 35.796l31.181 52.492l-20.877 35.084c-7.976 12.765-17.037 17.416-31.107 17.416\"\u002F>",{"left":551,"top":551,"width":556,"height":556,"rotate":551,"vFlip":9,"hFlip":9,"body":557},24,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 19h8M4 17l6-6l-6-6\"\u002F>",{"left":551,"top":551,"width":556,"height":556,"rotate":551,"vFlip":9,"hFlip":9,"body":559},"\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>",1786511352701]