[{"data":1,"prerenderedAt":547},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:xZwI6nfqa5ivVHd5I6FGo1EpdBrNHpp-67sVqMfb8No":133,"content-page-surround:docs:xZwI6nfqa5ivVHd5I6FGo1EpdBrNHpp-67sVqMfb8No":534,"i-logos:typescript-icon":537,"i-logos:vue":541,"i-lucide:clipboard":544},[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":104,"description":134,"icon":107,"body":135,"type":520,"id":105,"canonicalKey":106,"draft":9,"partial":9,"locale":8,"collection":521,"navigationFile":9,"file":522,"resolvedRefs":528,"route":529,"resolution":531},"The auto-imported usePdfPageNumbers map that activates multi-pass layout.",{"type":136,"children":137,"toc":511},"root",[138,147,204,225,230,237,306,492],{"type":139,"tag":140,"props":141,"children":143},"element","h2",{"id":142},"usepdfpagenumbers",[144],{"type":145,"value":146},"text","usePdfPageNumbers",{"type":139,"tag":148,"props":149,"children":153},"pre",{"language":150,"class":151,"tabindex":152},"ts","shiki shiki-themes light-plus dark-plus dark:dark-plus","0",[154],{"type":139,"tag":155,"props":156,"children":158},"code",{"class":157},"language-ts",[159,193,195],{"type":139,"tag":160,"props":161,"children":164},"span",{"class":162,"style":163},"line","display: inline",[165,171,177,183,188],{"type":139,"tag":160,"props":166,"children":168},{"style":167},"color:#0000FF;--shiki-dark:#569CD6",[169],{"type":145,"value":170},"const",{"type":139,"tag":160,"props":172,"children":174},{"style":173},"color:#0070C1;--shiki-dark:#4FC1FF",[175],{"type":145,"value":176}," pageNumbers",{"type":139,"tag":160,"props":178,"children":180},{"style":179},"color:#000000;--shiki-dark:#D4D4D4",[181],{"type":145,"value":182}," = ",{"type":139,"tag":160,"props":184,"children":186},{"style":185},"color:#795E26;--shiki-dark:#DCDCAA",[187],{"type":145,"value":146},{"type":139,"tag":160,"props":189,"children":190},{"style":179},[191],{"type":145,"value":192},"()",{"type":145,"value":194},"\n",{"type":139,"tag":160,"props":196,"children":197},{"class":162,"style":163},[198],{"type":139,"tag":160,"props":199,"children":201},{"style":200},"color:#008000;--shiki-dark:#6A9955",[202],{"type":145,"value":203},"\u002F\u002F pageNumbers: Readonly\u003CRecord\u003Cstring, number | undefined>>",{"type":139,"tag":205,"props":206,"children":207},"p",{},[208,210,216,218,223],{"type":145,"value":209},"Auto-imported inside PDF templates and the components they render. Returns a\n",{"type":139,"tag":211,"props":212,"children":213},"strong",{},[214],{"type":145,"value":215},"readonly, reactive",{"type":145,"value":217}," map from each destination ",{"type":139,"tag":155,"props":219,"children":220},{},[221],{"type":145,"value":222},"id",{"type":145,"value":224}," to the 1-based page it\nfinally lands on.",{"type":139,"tag":205,"props":226,"children":227},{},[228],{"type":145,"value":229},"Reading it is the only signal that turns on the multi-pass layout loop. The\nengine lays the document out repeatedly, feeding each pass's destination-page map back\nin, until the numbers stabilize.",{"type":139,"tag":231,"props":232,"children":234},"h3",{"id":233},"usepdfpagenumbers-behavior",[235],{"type":145,"value":236},"Behavior",{"type":139,"tag":238,"props":239,"children":240},"ul",{},[241,271,289],{"type":139,"tag":242,"props":243,"children":244},"li",{},[245,257,259,263,265,270],{"type":139,"tag":211,"props":246,"children":247},{},[248,250,255],{"type":145,"value":249},"First pass is ",{"type":139,"tag":155,"props":251,"children":252},{},[253],{"type":145,"value":254},"undefined",{"type":145,"value":256},".",{"type":145,"value":258}," Every entry is ",{"type":139,"tag":155,"props":260,"children":261},{},[262],{"type":145,"value":254},{"type":145,"value":264}," until the loop has\nlocated the destination. A template must support a missing number. Keep a\nfallback such as ",{"type":139,"tag":155,"props":266,"children":267},{},[268],{"type":145,"value":269},"pageNumbers[id] ?? ''",{"type":145,"value":256},{"type":139,"tag":242,"props":272,"children":273},{},[274,279,281,287],{"type":139,"tag":211,"props":275,"children":276},{},[277],{"type":145,"value":278},"First page of a section.",{"type":145,"value":280}," A number resolves to the page the destination's\nnode ",{"type":139,"tag":282,"props":283,"children":284},"em",{},[285],{"type":145,"value":286},"starts",{"type":145,"value":288}," on, even when the section spans pages.",{"type":139,"tag":242,"props":290,"children":291},{},[292,297,299,304],{"type":139,"tag":211,"props":293,"children":294},{},[295],{"type":145,"value":296},"Throws outside a render.",{"type":145,"value":298}," Calling it anywhere but a PDF template's setup\nthrows a ",{"type":139,"tag":155,"props":300,"children":301},{},[302],{"type":145,"value":303},"PDF_TEMPLATE_INVALID",{"type":145,"value":305}," error, rather than returning an empty map that\ncould be mistaken for first-pass state.",{"type":139,"tag":148,"props":307,"children":309},{"language":308,"class":151,"tabindex":152},"vue",[310],{"type":139,"tag":155,"props":311,"children":313},{"class":312},"language-vue",[314,356,357,380,381,397,398,401,402,418,419,450,451,459,460,476,477],{"type":139,"tag":160,"props":315,"children":316},{"class":162,"style":163},[317,323,329,335,340,345,351],{"type":139,"tag":160,"props":318,"children":320},{"style":319},"color:#800000;--shiki-dark:#808080",[321],{"type":145,"value":322},"\u003C",{"type":139,"tag":160,"props":324,"children":326},{"style":325},"color:#800000;--shiki-dark:#569CD6",[327],{"type":145,"value":328},"script",{"type":139,"tag":160,"props":330,"children":332},{"style":331},"color:#E50000;--shiki-dark:#9CDCFE",[333],{"type":145,"value":334}," setup",{"type":139,"tag":160,"props":336,"children":337},{"style":331},[338],{"type":145,"value":339}," lang",{"type":139,"tag":160,"props":341,"children":342},{"style":179},[343],{"type":145,"value":344},"=",{"type":139,"tag":160,"props":346,"children":348},{"style":347},"color:#0000FF;--shiki-dark:#CE9178",[349],{"type":145,"value":350},"\"ts\"",{"type":139,"tag":160,"props":352,"children":353},{"style":319},[354],{"type":145,"value":355},">",{"type":145,"value":194},{"type":139,"tag":160,"props":358,"children":359},{"class":162,"style":163},[360,364,368,372,376],{"type":139,"tag":160,"props":361,"children":362},{"style":167},[363],{"type":145,"value":170},{"type":139,"tag":160,"props":365,"children":366},{"style":173},[367],{"type":145,"value":176},{"type":139,"tag":160,"props":369,"children":370},{"style":179},[371],{"type":145,"value":182},{"type":139,"tag":160,"props":373,"children":374},{"style":185},[375],{"type":145,"value":146},{"type":139,"tag":160,"props":377,"children":378},{"style":179},[379],{"type":145,"value":192},{"type":145,"value":194},{"type":139,"tag":160,"props":382,"children":383},{"class":162,"style":163},[384,389,393],{"type":139,"tag":160,"props":385,"children":386},{"style":319},[387],{"type":145,"value":388},"\u003C\u002F",{"type":139,"tag":160,"props":390,"children":391},{"style":325},[392],{"type":145,"value":328},{"type":139,"tag":160,"props":394,"children":395},{"style":319},[396],{"type":145,"value":355},{"type":145,"value":194},{"type":139,"tag":160,"props":399,"children":400},{"class":162,"style":163},[],{"type":145,"value":194},{"type":139,"tag":160,"props":403,"children":404},{"class":162,"style":163},[405,409,414],{"type":139,"tag":160,"props":406,"children":407},{"style":319},[408],{"type":145,"value":322},{"type":139,"tag":160,"props":410,"children":411},{"style":325},[412],{"type":145,"value":413},"template",{"type":139,"tag":160,"props":415,"children":416},{"style":319},[417],{"type":145,"value":355},{"type":145,"value":194},{"type":139,"tag":160,"props":420,"children":421},{"class":162,"style":163},[422,427,432,437,441,446],{"type":139,"tag":160,"props":423,"children":424},{"style":319},[425],{"type":145,"value":426},"  \u003C",{"type":139,"tag":160,"props":428,"children":429},{"style":325},[430],{"type":145,"value":431},"PdfLink",{"type":139,"tag":160,"props":433,"children":434},{"style":331},[435],{"type":145,"value":436}," :src",{"type":139,"tag":160,"props":438,"children":439},{"style":179},[440],{"type":145,"value":344},{"type":139,"tag":160,"props":442,"children":443},{"style":347},[444],{"type":145,"value":445},"\"`#${section.id}`\"",{"type":139,"tag":160,"props":447,"children":448},{"style":319},[449],{"type":145,"value":355},{"type":145,"value":194},{"type":139,"tag":160,"props":452,"children":453},{"class":162,"style":163},[454],{"type":139,"tag":160,"props":455,"children":456},{"style":179},[457],{"type":145,"value":458},"    {{ section.title }} {{ pageNumbers[section.id] ?? '' }}",{"type":145,"value":194},{"type":139,"tag":160,"props":461,"children":462},{"class":162,"style":163},[463,468,472],{"type":139,"tag":160,"props":464,"children":465},{"style":319},[466],{"type":145,"value":467},"  \u003C\u002F",{"type":139,"tag":160,"props":469,"children":470},{"style":325},[471],{"type":145,"value":431},{"type":139,"tag":160,"props":473,"children":474},{"style":319},[475],{"type":145,"value":355},{"type":145,"value":194},{"type":139,"tag":160,"props":478,"children":479},{"class":162,"style":163},[480,484,488],{"type":139,"tag":160,"props":481,"children":482},{"style":319},[483],{"type":145,"value":388},{"type":139,"tag":160,"props":485,"children":486},{"style":325},[487],{"type":145,"value":413},{"type":139,"tag":160,"props":489,"children":490},{"style":319},[491],{"type":145,"value":355},{"type":139,"tag":205,"props":493,"children":494},{},[495,497,503,505,510],{"type":145,"value":496},"See ",{"type":139,"tag":498,"props":499,"children":501},"a",{"href":500},"$docs\u002Fguides\u002Fcontents-links-bookmarks",[502],{"type":145,"value":38},{"type":145,"value":504}," for\nconvergence semantics and ",{"type":139,"tag":155,"props":506,"children":507},{},[508],{"type":145,"value":509},"maxPasses",{"type":145,"value":256},{"title":512,"searchDepth":513,"depth":513,"links":514},"",4,[515],{"id":142,"depth":516,"text":146,"children":517},2,[518],{"id":233,"depth":519,"text":236},3,"markdown","docs",{"source":523,"path":524,"stem":525,"dir":526,"extension":527},"content","docs\u002F3.reference\u002F5.composables.md","docs\u002F3.reference\u002F5.composables","reference","md",{"$docs\u002Fguides\u002Fcontents-links-bookmarks":42},{"requestedPath":108,"resolvedPath":108,"alternates":530},[],{"requested":532,"resolved":533,"usedFallback":9},{},{"locale":8},{"previous":535,"next":536},{"title":98,"id":99,"canonicalKey":100,"locale":8,"draft":9,"path":102},{"title":110,"id":111,"canonicalKey":112,"locale":8,"draft":9,"path":114},{"left":538,"top":538,"width":539,"height":539,"rotate":538,"vFlip":9,"hFlip":9,"body":540},0,256,"\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":538,"top":538,"width":539,"height":542,"rotate":538,"vFlip":9,"hFlip":9,"body":543},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":538,"top":538,"width":545,"height":545,"rotate":538,"vFlip":9,"hFlip":9,"body":546},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>",1786511355510]