[{"data":1,"prerenderedAt":1053},["ShallowReactive",2],{"navigation_docs":3,"-api-composition":236,"-api-composition-surround":1048},[4,63,109,159],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":62},"API","i-lucide-braces","\u002Fapi","api",[10,14,18,22,26,30,34,38,42,46,50,54,58],{"title":11,"path":12,"stem":13},"Html2Pdf Component","\u002Fapi\u002Fcomponent","api\u002F01.component",{"title":15,"path":16,"stem":17},"Core Props","\u002Fapi\u002Fprops","api\u002F02.props",{"title":19,"path":20,"stem":21},"PDF Headers in Vue","\u002Fapi\u002Fheaders","api\u002F03.headers",{"title":23,"path":24,"stem":25},"PDF Footers in Vue","\u002Fapi\u002Ffooters","api\u002F04.footers",{"title":27,"path":28,"stem":29},"Security","\u002Fapi\u002Fsecurity","api\u002F05.security",{"title":31,"path":32,"stem":33},"Watermarks","\u002Fapi\u002Fwatermarks","api\u002F06.watermarks",{"title":35,"path":36,"stem":37},"Metadata & Compression","\u002Fapi\u002Fmetadata-compression","api\u002F07.metadata-compression",{"title":39,"path":40,"stem":41},"Programmatic API","\u002Fapi\u002Fprogrammatic-api","api\u002F08.programmatic-api",{"title":43,"path":44,"stem":45},"Loader, Progress, Metrics, Events & Slots","\u002Fapi\u002Fevents-slots","api\u002F09.events-slots",{"title":47,"path":48,"stem":49},"TypeScript","\u002Fapi\u002Ftypescript","api\u002F10.typescript",{"title":51,"path":52,"stem":53},"PDF Styling & data-pdf-ignore","\u002Fapi\u002Fpdf-styling","api\u002F11.pdf-styling",{"title":55,"path":56,"stem":57},"API Reference","\u002Fapi\u002Ffull-reference","api\u002F12.full-reference",{"title":59,"path":60,"stem":61},"Compose Existing PDF Pages","\u002Fapi\u002Fcomposition","api\u002F13.composition",false,{"title":64,"icon":65,"path":66,"stem":67,"children":68,"page":62},"Get Started","i-lucide-book-open","\u002Fget-started","get-started",[69,73,77,81,85,89,93,97,101,105],{"title":70,"path":71,"stem":72},"Introduction","\u002Fget-started\u002Fintroduction","get-started\u002F01.introduction",{"title":74,"path":75,"stem":76},"Installation","\u002Fget-started\u002Finstallation","get-started\u002F02.installation",{"title":78,"path":79,"stem":80},"Quick Start","\u002Fget-started\u002Fquick-start","get-started\u002F03.quick-start",{"title":82,"path":83,"stem":84},"Rendering Modes","\u002Fget-started\u002Frendering-modes","get-started\u002F04.rendering-modes",{"title":86,"path":87,"stem":88},"Component Registration","\u002Fget-started\u002Fregistration","get-started\u002F05.registration",{"title":90,"path":91,"stem":92},"Preview & Download","\u002Fget-started\u002Fpreview-download","get-started\u002F06.preview-download",{"title":94,"path":95,"stem":96},"Smart PDF Pagination","\u002Fget-started\u002Fpagination","get-started\u002F07.pagination",{"title":98,"path":99,"stem":100},"Nuxt 3 & Nuxt 4 SSR","\u002Fget-started\u002Fnuxt-ssr","get-started\u002F08.nuxt-ssr",{"title":102,"path":103,"stem":104},"Migration Guide","\u002Fget-started\u002Fmigration","get-started\u002F09.migration",{"title":106,"path":107,"stem":108},"PDF Paper Formats and Orientation","\u002Fget-started\u002Fpaper-formats","get-started\u002F10.paper-formats",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":62},"Use Cases","i-lucide-flask-conical","\u002Fuse-cases","use-cases",[115,119,123,127,131,135,139,143,147,151,155],{"title":116,"path":117,"stem":118},"Playground","\u002Fuse-cases\u002Fplayground","use-cases\u002F01.playground",{"title":120,"path":121,"stem":122},"Selectable Text Mode","\u002Fuse-cases\u002Fselectable-text","use-cases\u002F02.selectable-text",{"title":124,"path":125,"stem":126},"Clickable PDF Links","\u002Fuse-cases\u002Fclickable-links","use-cases\u002F03.clickable-links",{"title":128,"path":129,"stem":130},"Images & CORS","\u002Fuse-cases\u002Fimages-cors","use-cases\u002F04.images-cors",{"title":132,"path":133,"stem":134},"Production Guide","\u002Fuse-cases\u002Fproduction-guide","use-cases\u002F05.production-guide",{"title":136,"path":137,"stem":138},"Troubleshooting","\u002Fuse-cases\u002Ftroubleshooting","use-cases\u002F06.troubleshooting",{"title":140,"path":141,"stem":142},"Testing & Browser Support","\u002Fuse-cases\u002Ftesting-browser-support","use-cases\u002F07.testing-browser-support",{"title":144,"path":145,"stem":146},"Performance Engineering","\u002Fuse-cases\u002Fperformance-engineering","use-cases\u002F08.performance-engineering",{"title":148,"path":149,"stem":150},"Full Performance Engineering Report","\u002Fuse-cases\u002Fperformance-report","use-cases\u002F09.performance-report",{"title":152,"path":153,"stem":154},"Community & Feedback","\u002Fuse-cases\u002Fcommunity","use-cases\u002F10.community",{"title":156,"path":157,"stem":158},"Acknowledgements","\u002Fuse-cases\u002Facknowledgements","use-cases\u002F11.acknowledgements",{"title":160,"path":161,"stem":162,"children":163,"page":62},"Versions","\u002Fversions","versions",[164],{"title":165,"path":166,"stem":167,"children":168},"v1 Documentation","\u002Fversions\u002F1.1.1","versions\u002F1.1.1\u002Findex",[169,170,202,216],{"title":165,"path":166,"stem":167},{"title":171,"path":172,"stem":173,"children":174,"page":62},"Api","\u002Fversions\u002F1.1.1\u002Fapi","versions\u002F1.1.1\u002Fapi",[175,178,181,185,189,192,195,198],{"title":11,"path":176,"stem":177},"\u002Fversions\u002F1.1.1\u002Fapi\u002Fcomponent","versions\u002F1.1.1\u002Fapi\u002F01.component",{"title":15,"path":179,"stem":180},"\u002Fversions\u002F1.1.1\u002Fapi\u002Fprops","versions\u002F1.1.1\u002Fapi\u002F02.props",{"title":182,"path":183,"stem":184},"Headers","\u002Fversions\u002F1.1.1\u002Fapi\u002Fheaders","versions\u002F1.1.1\u002Fapi\u002F03.headers",{"title":186,"path":187,"stem":188},"Footers","\u002Fversions\u002F1.1.1\u002Fapi\u002Ffooters","versions\u002F1.1.1\u002Fapi\u002F04.footers",{"title":39,"path":190,"stem":191},"\u002Fversions\u002F1.1.1\u002Fapi\u002Fprogrammatic-api","versions\u002F1.1.1\u002Fapi\u002F08.programmatic-api",{"title":43,"path":193,"stem":194},"\u002Fversions\u002F1.1.1\u002Fapi\u002Fevents-slots","versions\u002F1.1.1\u002Fapi\u002F09.events-slots",{"title":47,"path":196,"stem":197},"\u002Fversions\u002F1.1.1\u002Fapi\u002Ftypescript","versions\u002F1.1.1\u002Fapi\u002F10.typescript",{"title":199,"path":200,"stem":201},"Full README Reference","\u002Fversions\u002F1.1.1\u002Fapi\u002Ffull-reference","versions\u002F1.1.1\u002Fapi\u002F12.full-reference",{"title":64,"path":203,"stem":204,"children":205,"page":62},"\u002Fversions\u002F1.1.1\u002Fget-started","versions\u002F1.1.1\u002Fget-started",[206,209,212],{"title":70,"path":207,"stem":208},"\u002Fversions\u002F1.1.1\u002Fget-started\u002Fintroduction","versions\u002F1.1.1\u002Fget-started\u002F01.introduction",{"title":82,"path":210,"stem":211},"\u002Fversions\u002F1.1.1\u002Fget-started\u002Frendering-modes","versions\u002F1.1.1\u002Fget-started\u002F04.rendering-modes",{"title":213,"path":214,"stem":215},"Pagination","\u002Fversions\u002F1.1.1\u002Fget-started\u002Fpagination","versions\u002F1.1.1\u002Fget-started\u002F07.pagination",{"title":110,"path":217,"stem":218,"children":219,"page":62},"\u002Fversions\u002F1.1.1\u002Fuse-cases","versions\u002F1.1.1\u002Fuse-cases",[220,223,226,229,232],{"title":116,"path":221,"stem":222},"\u002Fversions\u002F1.1.1\u002Fuse-cases\u002Fplayground","versions\u002F1.1.1\u002Fuse-cases\u002F01.playground",{"title":136,"path":224,"stem":225},"\u002Fversions\u002F1.1.1\u002Fuse-cases\u002Ftroubleshooting","versions\u002F1.1.1\u002Fuse-cases\u002F06.troubleshooting",{"title":140,"path":227,"stem":228},"\u002Fversions\u002F1.1.1\u002Fuse-cases\u002Ftesting-browser-support","versions\u002F1.1.1\u002Fuse-cases\u002F07.testing-browser-support",{"title":144,"path":230,"stem":231},"\u002Fversions\u002F1.1.1\u002Fuse-cases\u002Fperformance-engineering","versions\u002F1.1.1\u002Fuse-cases\u002F08.performance-engineering",{"title":233,"path":234,"stem":235},"Vue HTML to PDF Examples","\u002Fversions\u002F1.1.1\u002Fuse-cases\u002Fvue-html-to-pdf","versions\u002F1.1.1\u002Fuse-cases\u002F12.vue-html-to-pdf",{"id":237,"title":59,"body":238,"description":1040,"extension":1041,"links":1042,"meta":1043,"navigation":391,"path":60,"seo":1044,"stem":61,"__hash__":1047},"docs\u002Fapi\u002F13.composition.md",{"type":239,"value":240,"toc":1038},"minimark",[241,258,981,1001,1022,1034],[242,243,244,248,249,252,253,257],"p",{},[245,246,247],"code",{},"composition.prepend"," and ",[245,250,251],{},"composition.append"," insert ",[254,255,256],"strong",{},"whole PDF pages"," before and after generated pages. They do not overlay a page. A two-page template on both sides adds four pages.",[259,260,265],"pre",{"className":261,"code":262,"language":263,"meta":264,"style":264},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { Html2Pdf } from 'vue-pdf-export'\nimport type { PdfCompositionOptions } from 'vue-pdf-export'\nimport 'vue-pdf-export\u002Fstyle.css'\n\nconst pdfRef = ref\u003CInstanceType\u003Ctypeof Html2Pdf> | null>(null)\nconst templatePdf = ref\u003CBlob | null>(null)\nconst composition = ref\u003CPdfCompositionOptions>({})\n\nfunction chooseTemplate(event: Event) {\n  const file = (event.target as HTMLInputElement).files?.[0]\n  if (file) {\n    templatePdf.value = file\n    composition.value = { prepend: file, append: file }\n  }\n}\n\nasync function exportPdf() {\n  if (!templatePdf.value) return\n  await pdfRef.value?.generatePdf({ composition: composition.value })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cinput type=\"file\" accept=\"application\u002Fpdf,.pdf\" @change=\"chooseTemplate\">\n  \u003Cbutton type=\"button\" :disabled=\"!templatePdf\" @click=\"exportPdf\">Export combined PDF\u003C\u002Fbutton>\n  \u003CHtml2Pdf ref=\"pdfRef\" :manual-pagination=\"true\" :enable-download=\"true\" :composition=\"composition\">\n    \u003Ctemplate #pdf-content>\u003Carticle>Generated document\u003C\u002Farticle>\u003C\u002Ftemplate>\n  \u003C\u002FHtml2Pdf>\n\u003C\u002Ftemplate>\n","vue","",[245,266,267,302,330,351,374,386,393,438,467,493,498,525,574,591,607,641,647,653,658,675,697,735,740,750,755,765,810,863,926,962,972],{"__ignoreMap":264},[268,269,272,276,280,284,287,290,293,297,299],"span",{"class":270,"line":271},"line",1,[268,273,275],{"class":274},"sMK4o","\u003C",[268,277,279],{"class":278},"swJcz","script",[268,281,283],{"class":282},"spNyl"," setup",[268,285,286],{"class":282}," lang",[268,288,289],{"class":274},"=",[268,291,292],{"class":274},"\"",[268,294,296],{"class":295},"sfazB","ts",[268,298,292],{"class":274},[268,300,301],{"class":274},">\n",[268,303,305,309,312,316,319,322,325,327],{"class":270,"line":304},2,[268,306,308],{"class":307},"s7zQu","import",[268,310,311],{"class":274}," {",[268,313,315],{"class":314},"sTEyZ"," ref",[268,317,318],{"class":274}," }",[268,320,321],{"class":307}," from",[268,323,324],{"class":274}," '",[268,326,263],{"class":295},[268,328,329],{"class":274},"'\n",[268,331,333,335,337,340,342,344,346,349],{"class":270,"line":332},3,[268,334,308],{"class":307},[268,336,311],{"class":274},[268,338,339],{"class":314}," Html2Pdf",[268,341,318],{"class":274},[268,343,321],{"class":307},[268,345,324],{"class":274},[268,347,348],{"class":295},"vue-pdf-export",[268,350,329],{"class":274},[268,352,354,356,359,361,364,366,368,370,372],{"class":270,"line":353},4,[268,355,308],{"class":307},[268,357,358],{"class":307}," type",[268,360,311],{"class":274},[268,362,363],{"class":314}," PdfCompositionOptions",[268,365,318],{"class":274},[268,367,321],{"class":307},[268,369,324],{"class":274},[268,371,348],{"class":295},[268,373,329],{"class":274},[268,375,377,379,381,384],{"class":270,"line":376},5,[268,378,308],{"class":307},[268,380,324],{"class":274},[268,382,383],{"class":295},"vue-pdf-export\u002Fstyle.css",[268,385,329],{"class":274},[268,387,389],{"class":270,"line":388},6,[268,390,392],{"emptyLinePlaceholder":391},true,"\n",[268,394,396,399,402,404,407,409,413,416,418,421,424,427,429,432,435],{"class":270,"line":395},7,[268,397,398],{"class":282},"const",[268,400,401],{"class":314}," pdfRef ",[268,403,289],{"class":274},[268,405,315],{"class":406},"s2Zo4",[268,408,275],{"class":274},[268,410,412],{"class":411},"sBMFI","InstanceType",[268,414,415],{"class":274},"\u003Ctypeof",[268,417,339],{"class":314},[268,419,420],{"class":274},">",[268,422,423],{"class":274}," |",[268,425,426],{"class":411}," null",[268,428,420],{"class":274},[268,430,431],{"class":314},"(",[268,433,434],{"class":274},"null",[268,436,437],{"class":314},")\n",[268,439,441,443,446,448,450,452,455,457,459,461,463,465],{"class":270,"line":440},8,[268,442,398],{"class":282},[268,444,445],{"class":314}," templatePdf ",[268,447,289],{"class":274},[268,449,315],{"class":406},[268,451,275],{"class":274},[268,453,454],{"class":411},"Blob",[268,456,423],{"class":274},[268,458,426],{"class":411},[268,460,420],{"class":274},[268,462,431],{"class":314},[268,464,434],{"class":274},[268,466,437],{"class":314},[268,468,470,472,475,477,479,481,484,486,488,491],{"class":270,"line":469},9,[268,471,398],{"class":282},[268,473,474],{"class":314}," composition ",[268,476,289],{"class":274},[268,478,315],{"class":406},[268,480,275],{"class":274},[268,482,483],{"class":411},"PdfCompositionOptions",[268,485,420],{"class":274},[268,487,431],{"class":314},[268,489,490],{"class":274},"{}",[268,492,437],{"class":314},[268,494,496],{"class":270,"line":495},10,[268,497,392],{"emptyLinePlaceholder":391},[268,499,501,504,507,509,513,516,519,522],{"class":270,"line":500},11,[268,502,503],{"class":282},"function",[268,505,506],{"class":406}," chooseTemplate",[268,508,431],{"class":274},[268,510,512],{"class":511},"sHdIc","event",[268,514,515],{"class":274},":",[268,517,518],{"class":411}," Event",[268,520,521],{"class":274},")",[268,523,524],{"class":274}," {\n",[268,526,528,531,534,537,540,542,545,548,551,554,556,558,561,564,567,571],{"class":270,"line":527},12,[268,529,530],{"class":282},"  const",[268,532,533],{"class":314}," file",[268,535,536],{"class":274}," =",[268,538,539],{"class":278}," (",[268,541,512],{"class":314},[268,543,544],{"class":274},".",[268,546,547],{"class":314},"target",[268,549,550],{"class":307}," as",[268,552,553],{"class":411}," HTMLInputElement",[268,555,521],{"class":278},[268,557,544],{"class":274},[268,559,560],{"class":314},"files",[268,562,563],{"class":274},"?.",[268,565,566],{"class":278},"[",[268,568,570],{"class":569},"sbssI","0",[268,572,573],{"class":278},"]\n",[268,575,577,580,582,585,588],{"class":270,"line":576},13,[268,578,579],{"class":307},"  if",[268,581,539],{"class":278},[268,583,584],{"class":314},"file",[268,586,587],{"class":278},") ",[268,589,590],{"class":274},"{\n",[268,592,594,597,599,602,604],{"class":270,"line":593},14,[268,595,596],{"class":314},"    templatePdf",[268,598,544],{"class":274},[268,600,601],{"class":314},"value",[268,603,536],{"class":274},[268,605,606],{"class":314}," file\n",[268,608,610,613,615,617,619,621,624,626,628,631,634,636,638],{"class":270,"line":609},15,[268,611,612],{"class":314},"    composition",[268,614,544],{"class":274},[268,616,601],{"class":314},[268,618,536],{"class":274},[268,620,311],{"class":274},[268,622,623],{"class":278}," prepend",[268,625,515],{"class":274},[268,627,533],{"class":314},[268,629,630],{"class":274},",",[268,632,633],{"class":278}," append",[268,635,515],{"class":274},[268,637,533],{"class":314},[268,639,640],{"class":274}," }\n",[268,642,644],{"class":270,"line":643},16,[268,645,646],{"class":274},"  }\n",[268,648,650],{"class":270,"line":649},17,[268,651,652],{"class":274},"}\n",[268,654,656],{"class":270,"line":655},18,[268,657,392],{"emptyLinePlaceholder":391},[268,659,661,664,667,670,673],{"class":270,"line":660},19,[268,662,663],{"class":282},"async",[268,665,666],{"class":282}," function",[268,668,669],{"class":406}," exportPdf",[268,671,672],{"class":274},"()",[268,674,524],{"class":274},[268,676,678,680,682,685,688,690,692,694],{"class":270,"line":677},20,[268,679,579],{"class":307},[268,681,539],{"class":278},[268,683,684],{"class":274},"!",[268,686,687],{"class":314},"templatePdf",[268,689,544],{"class":274},[268,691,601],{"class":314},[268,693,587],{"class":278},[268,695,696],{"class":307},"return\n",[268,698,700,703,706,708,710,712,715,717,720,723,725,727,729,731,733],{"class":270,"line":699},21,[268,701,702],{"class":307},"  await",[268,704,705],{"class":314}," pdfRef",[268,707,544],{"class":274},[268,709,601],{"class":314},[268,711,563],{"class":274},[268,713,714],{"class":406},"generatePdf",[268,716,431],{"class":278},[268,718,719],{"class":274},"{",[268,721,722],{"class":278}," composition",[268,724,515],{"class":274},[268,726,722],{"class":314},[268,728,544],{"class":274},[268,730,601],{"class":314},[268,732,318],{"class":274},[268,734,437],{"class":278},[268,736,738],{"class":270,"line":737},22,[268,739,652],{"class":274},[268,741,743,746,748],{"class":270,"line":742},23,[268,744,745],{"class":274},"\u003C\u002F",[268,747,279],{"class":278},[268,749,301],{"class":274},[268,751,753],{"class":270,"line":752},24,[268,754,392],{"emptyLinePlaceholder":391},[268,756,758,760,763],{"class":270,"line":757},25,[268,759,275],{"class":274},[268,761,762],{"class":278},"template",[268,764,301],{"class":274},[268,766,768,771,774,776,778,780,782,784,787,789,791,794,796,799,801,803,806,808],{"class":270,"line":767},26,[268,769,770],{"class":274},"  \u003C",[268,772,773],{"class":278},"input",[268,775,358],{"class":282},[268,777,289],{"class":274},[268,779,292],{"class":274},[268,781,584],{"class":295},[268,783,292],{"class":274},[268,785,786],{"class":282}," accept",[268,788,289],{"class":274},[268,790,292],{"class":274},[268,792,793],{"class":295},"application\u002Fpdf,.pdf",[268,795,292],{"class":274},[268,797,798],{"class":282}," @change",[268,800,289],{"class":274},[268,802,292],{"class":274},[268,804,805],{"class":295},"chooseTemplate",[268,807,292],{"class":274},[268,809,301],{"class":274},[268,811,813,815,818,820,822,824,826,828,831,833,835,838,840,843,845,847,850,852,854,857,859,861],{"class":270,"line":812},27,[268,814,770],{"class":274},[268,816,817],{"class":278},"button",[268,819,358],{"class":282},[268,821,289],{"class":274},[268,823,292],{"class":274},[268,825,817],{"class":295},[268,827,292],{"class":274},[268,829,830],{"class":282}," :disabled",[268,832,289],{"class":274},[268,834,292],{"class":274},[268,836,837],{"class":295},"!templatePdf",[268,839,292],{"class":274},[268,841,842],{"class":282}," @click",[268,844,289],{"class":274},[268,846,292],{"class":274},[268,848,849],{"class":295},"exportPdf",[268,851,292],{"class":274},[268,853,420],{"class":274},[268,855,856],{"class":314},"Export combined PDF",[268,858,745],{"class":274},[268,860,817],{"class":278},[268,862,301],{"class":274},[268,864,866,868,871,873,875,877,880,882,885,888,890,892,896,898,900,903,905,907,909,911,913,916,918,920,922,924],{"class":270,"line":865},28,[268,867,770],{"class":274},[268,869,870],{"class":278},"Html2Pdf",[268,872,315],{"class":282},[268,874,289],{"class":274},[268,876,292],{"class":274},[268,878,879],{"class":295},"pdfRef",[268,881,292],{"class":274},[268,883,884],{"class":274}," :",[268,886,887],{"class":282},"manual-pagination",[268,889,289],{"class":274},[268,891,292],{"class":274},[268,893,895],{"class":894},"sfNiH","true",[268,897,292],{"class":274},[268,899,884],{"class":274},[268,901,902],{"class":282},"enable-download",[268,904,289],{"class":274},[268,906,292],{"class":274},[268,908,895],{"class":894},[268,910,292],{"class":274},[268,912,884],{"class":274},[268,914,915],{"class":282},"composition",[268,917,289],{"class":274},[268,919,292],{"class":274},[268,921,915],{"class":314},[268,923,292],{"class":274},[268,925,301],{"class":274},[268,927,929,932,934,937,940,943,946,948,951,953,955,958,960],{"class":270,"line":928},29,[268,930,931],{"class":274},"    \u003C",[268,933,762],{"class":278},[268,935,936],{"class":274}," #",[268,938,939],{"class":282},"pdf-content",[268,941,942],{"class":274},">\u003C",[268,944,945],{"class":278},"article",[268,947,420],{"class":274},[268,949,950],{"class":314},"Generated document",[268,952,745],{"class":274},[268,954,945],{"class":278},[268,956,957],{"class":274},">\u003C\u002F",[268,959,762],{"class":278},[268,961,301],{"class":274},[268,963,965,968,970],{"class":270,"line":964},30,[268,966,967],{"class":274},"  \u003C\u002F",[268,969,870],{"class":278},[268,971,301],{"class":274},[268,973,975,977,979],{"class":270,"line":974},31,[268,976,745],{"class":274},[268,978,762],{"class":278},[268,980,301],{"class":274},[242,982,983,986,987,989,990,989,993,996,997,1000],{},[245,984,985],{},"PdfTemplateSource"," accepts ",[245,988,454],{},", ",[245,991,992],{},"ArrayBuffer",[245,994,995],{},"Uint8Array",", or a URL string pointing to a real PDF. Browser ",[245,998,999],{},"fetch()"," of remote URLs needs CORS access. Password-protected template PDFs may not load; verify the source before export. The same source used twice is resolved once per generation. The composition engine loads only when needed.",[242,1002,1003,1004,1007,1008,1010,1011,248,1014,1017,1018,1021],{},"Method ",[245,1005,1006],{},"generatePdf({ composition })"," takes precedence over the ",[245,1009,915],{}," prop. The object prop takes precedence over the older convenience pair ",[245,1012,1013],{},"pdf-template",[245,1015,1016],{},"template-position=\"prepend|append|both\"","; the legacy pair defaults to prepend. Composition can also be passed through the lower-level options. Generated headers, footers, watermarks and ",[245,1019,1020],{},"{total}"," are applied before inserted pages, so their page numbering excludes templates. Cancellation is checked around fetch, parsing and serialization. The implementation reapplies metadata and encryption to the combined output when configured, but test the resulting permissions and metadata in your target viewers.",[242,1023,1024,1025,1029,1030,1033],{},"For Blob\u002FArrayBuffer\u002FBase64 output, see the ",[1026,1027,1028],"a",{"href":40},"programmatic API",". The ",[1026,1031,1032],{"href":117},"playground"," offers composition upload and page-order checks.",[1035,1036,1037],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":264,"searchDepth":304,"depth":304,"links":1039},[],"Prepend or append whole existing PDF pages to vue-pdf-export output from a Blob, bytes or URL.","md",null,{},{"title":1045,"description":1046},"Vue PDF Composition and Page Insertion","Add existing PDF pages before or after a generated Vue PDF using Blob, ArrayBuffer, Uint8Array or URL sources.","HA_gwEoeHPWdSFYVLSw7xga1r-BVRGhUyvUQcGoV_0g",[1049,1051],{"title":55,"path":56,"stem":57,"description":1050,"children":-1},"Public vue-pdf-export component props, methods, events, slots, composable and types, with links to detailed guides.",{"title":70,"path":71,"stem":72,"description":1052,"children":-1},"Learn what vue-pdf-export provides for Vue applications, including Canvas and selectable-text PDF rendering, output formats, SSR safety and styling.",1790687337642]