[{"data":1,"prerenderedAt":1323},["ShallowReactive",2],{"navigation_docs":3,"-versions-1-1-1-api-programmatic-api":282,"-versions-1-1-1-api-programmatic-api-surround":1318},[4,63,109,175],{"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,159,163,167,171],{"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},"Fonts, Charts, SVG and Image Optimization","\u002Fuse-cases\u002Fmedia-typography","use-cases\u002F12.media-typography",{"title":164,"path":165,"stem":166},"PDF Generation Flow","\u002Fuse-cases\u002Fproject-flow","use-cases\u002F13.project-flow",{"title":168,"path":169,"stem":170},"Ask the vue-pdf-export documentation","\u002Fuse-cases\u002Fask-docs","use-cases\u002F14.ask-docs",{"title":172,"path":173,"stem":174},"Vue to PDF in Vue 3 and Nuxt","\u002Fuse-cases\u002Fvue-to-pdf","use-cases\u002F14.vue-to-pdf",{"title":176,"path":177,"stem":178,"children":179,"page":62},"Versions","\u002Fversions","versions",[180,252],{"title":181,"path":182,"stem":183,"children":184},"v1 Documentation","\u002Fversions\u002F1.1.1","versions\u002F1.1.1\u002Findex",[185,186,218,232],{"title":181,"path":182,"stem":183},{"title":187,"path":188,"stem":189,"children":190,"page":62},"Api","\u002Fversions\u002F1.1.1\u002Fapi","versions\u002F1.1.1\u002Fapi",[191,194,197,201,205,208,211,214],{"title":11,"path":192,"stem":193},"\u002Fversions\u002F1.1.1\u002Fapi\u002Fcomponent","versions\u002F1.1.1\u002Fapi\u002F01.component",{"title":15,"path":195,"stem":196},"\u002Fversions\u002F1.1.1\u002Fapi\u002Fprops","versions\u002F1.1.1\u002Fapi\u002F02.props",{"title":198,"path":199,"stem":200},"Headers","\u002Fversions\u002F1.1.1\u002Fapi\u002Fheaders","versions\u002F1.1.1\u002Fapi\u002F03.headers",{"title":202,"path":203,"stem":204},"Footers","\u002Fversions\u002F1.1.1\u002Fapi\u002Ffooters","versions\u002F1.1.1\u002Fapi\u002F04.footers",{"title":39,"path":206,"stem":207},"\u002Fversions\u002F1.1.1\u002Fapi\u002Fprogrammatic-api","versions\u002F1.1.1\u002Fapi\u002F08.programmatic-api",{"title":43,"path":209,"stem":210},"\u002Fversions\u002F1.1.1\u002Fapi\u002Fevents-slots","versions\u002F1.1.1\u002Fapi\u002F09.events-slots",{"title":47,"path":212,"stem":213},"\u002Fversions\u002F1.1.1\u002Fapi\u002Ftypescript","versions\u002F1.1.1\u002Fapi\u002F10.typescript",{"title":215,"path":216,"stem":217},"Full README Reference","\u002Fversions\u002F1.1.1\u002Fapi\u002Ffull-reference","versions\u002F1.1.1\u002Fapi\u002F12.full-reference",{"title":64,"path":219,"stem":220,"children":221,"page":62},"\u002Fversions\u002F1.1.1\u002Fget-started","versions\u002F1.1.1\u002Fget-started",[222,225,228],{"title":70,"path":223,"stem":224},"\u002Fversions\u002F1.1.1\u002Fget-started\u002Fintroduction","versions\u002F1.1.1\u002Fget-started\u002F01.introduction",{"title":82,"path":226,"stem":227},"\u002Fversions\u002F1.1.1\u002Fget-started\u002Frendering-modes","versions\u002F1.1.1\u002Fget-started\u002F04.rendering-modes",{"title":229,"path":230,"stem":231},"Pagination","\u002Fversions\u002F1.1.1\u002Fget-started\u002Fpagination","versions\u002F1.1.1\u002Fget-started\u002F07.pagination",{"title":110,"path":233,"stem":234,"children":235,"page":62},"\u002Fversions\u002F1.1.1\u002Fuse-cases","versions\u002F1.1.1\u002Fuse-cases",[236,239,242,245,248],{"title":116,"path":237,"stem":238},"\u002Fversions\u002F1.1.1\u002Fuse-cases\u002Fplayground","versions\u002F1.1.1\u002Fuse-cases\u002F01.playground",{"title":136,"path":240,"stem":241},"\u002Fversions\u002F1.1.1\u002Fuse-cases\u002Ftroubleshooting","versions\u002F1.1.1\u002Fuse-cases\u002F06.troubleshooting",{"title":140,"path":243,"stem":244},"\u002Fversions\u002F1.1.1\u002Fuse-cases\u002Ftesting-browser-support","versions\u002F1.1.1\u002Fuse-cases\u002F07.testing-browser-support",{"title":144,"path":246,"stem":247},"\u002Fversions\u002F1.1.1\u002Fuse-cases\u002Fperformance-engineering","versions\u002F1.1.1\u002Fuse-cases\u002F08.performance-engineering",{"title":249,"path":250,"stem":251},"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",{"title":253,"path":254,"stem":255,"children":256},"Full References by Package Version","\u002Fversions\u002Ffull-references","versions\u002Ffull-references\u002Findex",[257,258,264,270,276],{"title":253,"path":254,"stem":255},{"title":259,"path":260,"stem":261,"children":262},"vue-pdf-export 1.1.1 Full Reference","\u002Fversions\u002Ffull-references\u002F1.1.1","versions\u002Ffull-references\u002F1.1.1\u002Findex",[263],{"title":259,"path":260,"stem":261},{"title":265,"path":266,"stem":267,"children":268},"vue-pdf-export 1.2.0 Full Reference","\u002Fversions\u002Ffull-references\u002F1.2.0","versions\u002Ffull-references\u002F1.2.0\u002Findex",[269],{"title":265,"path":266,"stem":267},{"title":271,"path":272,"stem":273,"children":274},"vue-pdf-export 1.2.1 Full Reference","\u002Fversions\u002Ffull-references\u002F1.2.1","versions\u002Ffull-references\u002F1.2.1\u002Findex",[275],{"title":271,"path":272,"stem":273},{"title":277,"path":278,"stem":279,"children":280},"vue-pdf-export 1.3.0 Full Reference","\u002Fversions\u002Ffull-references\u002F1.3.0","versions\u002Ffull-references\u002F1.3.0\u002Findex",[281],{"title":277,"path":278,"stem":279},{"id":283,"title":39,"body":284,"description":1311,"extension":1312,"links":1313,"meta":1314,"navigation":912,"path":206,"seo":1315,"stem":207,"__hash__":1317},"docs\u002Fversions\u002F1.1.1\u002Fapi\u002F08.programmatic-api.md",{"type":285,"value":286,"toc":1297},"minimark",[287,292,419,598,602,654,659,695,700,704,733,736,740,743,772,775,827,830,838,851,855,858,1013,1026,1030,1052,1055,1059,1080,1084,1104,1107,1111,1131,1136,1164,1168,1293],[288,289,291],"h2",{"id":290},"component-methods","Component methods",[293,294,295,311],"table",{},[296,297,298],"thead",{},[299,300,301,305,308],"tr",{},[302,303,304],"th",{},"Method",[302,306,307],{},"Return",[302,309,310],{},"Purpose",[312,313,314,331,346,361,376,391,405],"tbody",{},[299,315,316,323,328],{},[317,318,319],"td",{},[320,321,322],"code",{},"generatePdf()",[317,324,325],{},[320,326,327],{},"Promise\u003CBlob>",[317,329,330],{},"Generate the PDF and return its Blob.",[299,332,333,338,343],{},[317,334,335],{},[320,336,337],{},"generatePdfArrayBuffer()",[317,339,340],{},[320,341,342],{},"Promise\u003CArrayBuffer>",[317,344,345],{},"Generate once, then serialize the resulting Blob to binary bytes.",[299,347,348,353,358],{},[317,349,350],{},[320,351,352],{},"generatePdfBase64(options?)",[317,354,355],{},[320,356,357],{},"Promise\u003Cstring>",[317,359,360],{},"Generate once, then return raw Base64 or an optional PDF data URL.",[299,362,363,368,373],{},[317,364,365],{},[320,366,367],{},"print()",[317,369,370],{},[320,371,372],{},"Promise\u003Cvoid>",[317,374,375],{},"Generate\u002Fopen the native browser print flow.",[299,377,378,383,388],{},[317,379,380],{},[320,381,382],{},"closePreview()",[317,384,385],{},[320,386,387],{},"void",[317,389,390],{},"Close the active preview flow.",[299,392,393,398,402],{},[317,394,395],{},[320,396,397],{},"resetPagination()",[317,399,400],{},[320,401,387],{},[317,403,404],{},"Remove automatically inserted page breaks.",[299,406,407,412,416],{},[317,408,409],{},[320,410,411],{},"cancelGeneration()",[317,413,414],{},[320,415,387],{},[317,417,418],{},"Request cooperative cancellation of active generation.",[420,421,426],"pre",{"className":422,"code":423,"language":424,"meta":425,"style":425},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","interface Html2PdfInstance {\n  generatePdf: () => Promise\u003CBlob>\n  generatePdfArrayBuffer: () => Promise\u003CArrayBuffer>\n  generatePdfBase64: (options?: PdfBase64Options) => Promise\u003Cstring>\n  print: () => Promise\u003Cvoid>\n  closePreview: () => void\n  resetPagination: () => void\n  cancelGeneration: () => void\n}\n","ts","",[320,427,428,445,473,494,529,549,564,578,592],{"__ignoreMap":425},[429,430,433,437,441],"span",{"class":431,"line":432},"line",1,[429,434,436],{"class":435},"spNyl","interface",[429,438,440],{"class":439},"sBMFI"," Html2PdfInstance",[429,442,444],{"class":443},"sMK4o"," {\n",[429,446,448,452,455,458,461,464,467,470],{"class":431,"line":447},2,[429,449,451],{"class":450},"swJcz","  generatePdf",[429,453,454],{"class":443},":",[429,456,457],{"class":443}," ()",[429,459,460],{"class":435}," =>",[429,462,463],{"class":439}," Promise",[429,465,466],{"class":443},"\u003C",[429,468,469],{"class":439},"Blob",[429,471,472],{"class":443},">\n",[429,474,476,479,481,483,485,487,489,492],{"class":431,"line":475},3,[429,477,478],{"class":450},"  generatePdfArrayBuffer",[429,480,454],{"class":443},[429,482,457],{"class":443},[429,484,460],{"class":435},[429,486,463],{"class":439},[429,488,466],{"class":443},[429,490,491],{"class":439},"ArrayBuffer",[429,493,472],{"class":443},[429,495,497,500,502,505,509,512,515,518,520,522,524,527],{"class":431,"line":496},4,[429,498,499],{"class":450},"  generatePdfBase64",[429,501,454],{"class":443},[429,503,504],{"class":443}," (",[429,506,508],{"class":507},"sHdIc","options",[429,510,511],{"class":443},"?:",[429,513,514],{"class":439}," PdfBase64Options",[429,516,517],{"class":443},")",[429,519,460],{"class":435},[429,521,463],{"class":439},[429,523,466],{"class":443},[429,525,526],{"class":439},"string",[429,528,472],{"class":443},[429,530,532,535,537,539,541,543,545,547],{"class":431,"line":531},5,[429,533,534],{"class":450},"  print",[429,536,454],{"class":443},[429,538,457],{"class":443},[429,540,460],{"class":435},[429,542,463],{"class":439},[429,544,466],{"class":443},[429,546,387],{"class":439},[429,548,472],{"class":443},[429,550,552,555,557,559,561],{"class":431,"line":551},6,[429,553,554],{"class":450},"  closePreview",[429,556,454],{"class":443},[429,558,457],{"class":443},[429,560,460],{"class":435},[429,562,563],{"class":439}," void\n",[429,565,567,570,572,574,576],{"class":431,"line":566},7,[429,568,569],{"class":450},"  resetPagination",[429,571,454],{"class":443},[429,573,457],{"class":443},[429,575,460],{"class":435},[429,577,563],{"class":439},[429,579,581,584,586,588,590],{"class":431,"line":580},8,[429,582,583],{"class":450},"  cancelGeneration",[429,585,454],{"class":443},[429,587,457],{"class":443},[429,589,460],{"class":435},[429,591,563],{"class":439},[429,593,595],{"class":431,"line":594},9,[429,596,597],{"class":443},"}\n",[599,600,601],"p",{},"Recommended ref:",[420,603,605],{"className":422,"code":604,"language":424,"meta":425,"style":425},"const pdfRef = ref\u003CInstanceType\u003Ctypeof Html2Pdf> | null>(null)\n",[320,606,607],{"__ignoreMap":425},[429,608,609,612,616,619,623,625,628,631,634,637,640,643,645,648,651],{"class":431,"line":432},[429,610,611],{"class":435},"const",[429,613,615],{"class":614},"sTEyZ"," pdfRef ",[429,617,618],{"class":443},"=",[429,620,622],{"class":621},"s2Zo4"," ref",[429,624,466],{"class":443},[429,626,627],{"class":439},"InstanceType",[429,629,630],{"class":443},"\u003Ctypeof",[429,632,633],{"class":614}," Html2Pdf",[429,635,636],{"class":443},">",[429,638,639],{"class":443}," |",[429,641,642],{"class":439}," null",[429,644,636],{"class":443},[429,646,647],{"class":614},"(",[429,649,650],{"class":443},"null",[429,652,653],{"class":614},")\n",[655,656,658],"h3",{"id":657},"generate-blob","Generate Blob",[420,660,662],{"className":422,"code":661,"language":424,"meta":425,"style":425},"const blob = await pdfRef.value?.generatePdf()\n",[320,663,664],{"__ignoreMap":425},[429,665,666,668,671,673,677,680,683,686,689,692],{"class":431,"line":432},[429,667,611],{"class":435},[429,669,670],{"class":614}," blob ",[429,672,618],{"class":443},[429,674,676],{"class":675},"s7zQu"," await",[429,678,679],{"class":614}," pdfRef",[429,681,682],{"class":443},".",[429,684,685],{"class":614},"value",[429,687,688],{"class":443},"?.",[429,690,691],{"class":621},"generatePdf",[429,693,694],{"class":614},"()\n",[599,696,697,699],{},[320,698,469],{}," remains the recommended default for downloads, previews, object URLs, and very large PDFs.",[655,701,703],{"id":702},"generate-arraybuffer","Generate ArrayBuffer",[420,705,707],{"className":422,"code":706,"language":424,"meta":425,"style":425},"const arrayBuffer = await pdfRef.value?.generatePdfArrayBuffer()\n",[320,708,709],{"__ignoreMap":425},[429,710,711,713,716,718,720,722,724,726,728,731],{"class":431,"line":432},[429,712,611],{"class":435},[429,714,715],{"class":614}," arrayBuffer ",[429,717,618],{"class":443},[429,719,676],{"class":675},[429,721,679],{"class":614},[429,723,682],{"class":443},[429,725,685],{"class":614},[429,727,688],{"class":443},[429,729,730],{"class":621},"generatePdfArrayBuffer",[429,732,694],{"class":614},[599,734,735],{},"Use ArrayBuffer when you need raw PDF bytes for binary APIs, workers, storage, cryptographic processing, or transports that accept binary data.",[655,737,739],{"id":738},"generate-base64","Generate Base64",[599,741,742],{},"Raw Base64:",[420,744,746],{"className":422,"code":745,"language":424,"meta":425,"style":425},"const base64 = await pdfRef.value?.generatePdfBase64()\n",[320,747,748],{"__ignoreMap":425},[429,749,750,752,755,757,759,761,763,765,767,770],{"class":431,"line":432},[429,751,611],{"class":435},[429,753,754],{"class":614}," base64 ",[429,756,618],{"class":443},[429,758,676],{"class":675},[429,760,679],{"class":614},[429,762,682],{"class":443},[429,764,685],{"class":614},[429,766,688],{"class":443},[429,768,769],{"class":621},"generatePdfBase64",[429,771,694],{"class":614},[599,773,774],{},"PDF data URL:",[420,776,778],{"className":422,"code":777,"language":424,"meta":425,"style":425},"const dataUrl = await pdfRef.value?.generatePdfBase64({\n  dataUrl: true,\n})\n",[320,779,780,806,820],{"__ignoreMap":425},[429,781,782,784,787,789,791,793,795,797,799,801,803],{"class":431,"line":432},[429,783,611],{"class":435},[429,785,786],{"class":614}," dataUrl ",[429,788,618],{"class":443},[429,790,676],{"class":675},[429,792,679],{"class":614},[429,794,682],{"class":443},[429,796,685],{"class":614},[429,798,688],{"class":443},[429,800,769],{"class":621},[429,802,647],{"class":614},[429,804,805],{"class":443},"{\n",[429,807,808,811,813,817],{"class":431,"line":447},[429,809,810],{"class":450},"  dataUrl",[429,812,454],{"class":443},[429,814,816],{"class":815},"sfNiH"," true",[429,818,819],{"class":443},",\n",[429,821,822,825],{"class":431,"line":475},[429,823,824],{"class":443},"}",[429,826,653],{"class":614},[599,828,829],{},"Base64 is convenient for string-only transports, but it is larger than the binary payload and requires additional conversion memory. Prefer Blob or ArrayBuffer for large PDFs.",[599,831,832,833,837],{},"The ArrayBuffer and Base64 methods reuse the normal PDF generation flow and serialize the generated Blob. They do ",[834,835,836],"strong",{},"not"," run a second PDF renderer.",[839,840,841],"blockquote",{},[599,842,843,844,847,848,682],{},"For pure programmatic output, disable automatic browser-side download\u002Fpreview with ",[320,845,846],{},":enable-download=\"false\""," and ",[320,849,850],{},":preview-modal=\"false\"",[288,852,854],{"id":853},"low-level-output-serialization","Low-level output serialization",[599,856,857],{},"The output helpers are also available directly:",[420,859,861],{"className":422,"code":860,"language":424,"meta":425,"style":425},"import {\n  pdfBlobToArrayBuffer,\n  pdfBlobToBase64,\n  serializePdfOutput,\n} from 'vue-pdf-export'\n\nconst bytes = await pdfBlobToArrayBuffer(blob)\nconst base64 = await pdfBlobToBase64(blob)\nconst dataUrl = await pdfBlobToBase64(blob, { dataUrl: true })\n\nconst output = await serializePdfOutput(blob, 'arraybuffer')\n",[320,862,863,870,877,884,891,908,914,931,946,979,984],{"__ignoreMap":425},[429,864,865,868],{"class":431,"line":432},[429,866,867],{"class":675},"import",[429,869,444],{"class":443},[429,871,872,875],{"class":431,"line":447},[429,873,874],{"class":614},"  pdfBlobToArrayBuffer",[429,876,819],{"class":443},[429,878,879,882],{"class":431,"line":475},[429,880,881],{"class":614},"  pdfBlobToBase64",[429,883,819],{"class":443},[429,885,886,889],{"class":431,"line":496},[429,887,888],{"class":614},"  serializePdfOutput",[429,890,819],{"class":443},[429,892,893,895,898,901,905],{"class":431,"line":531},[429,894,824],{"class":443},[429,896,897],{"class":675}," from",[429,899,900],{"class":443}," '",[429,902,904],{"class":903},"sfazB","vue-pdf-export",[429,906,907],{"class":443},"'\n",[429,909,910],{"class":431,"line":551},[429,911,913],{"emptyLinePlaceholder":912},true,"\n",[429,915,916,918,921,923,925,928],{"class":431,"line":566},[429,917,611],{"class":435},[429,919,920],{"class":614}," bytes ",[429,922,618],{"class":443},[429,924,676],{"class":675},[429,926,927],{"class":621}," pdfBlobToArrayBuffer",[429,929,930],{"class":614},"(blob)\n",[429,932,933,935,937,939,941,944],{"class":431,"line":580},[429,934,611],{"class":435},[429,936,754],{"class":614},[429,938,618],{"class":443},[429,940,676],{"class":675},[429,942,943],{"class":621}," pdfBlobToBase64",[429,945,930],{"class":614},[429,947,948,950,952,954,956,958,961,964,967,970,972,974,977],{"class":431,"line":594},[429,949,611],{"class":435},[429,951,786],{"class":614},[429,953,618],{"class":443},[429,955,676],{"class":675},[429,957,943],{"class":621},[429,959,960],{"class":614},"(blob",[429,962,963],{"class":443},",",[429,965,966],{"class":443}," {",[429,968,969],{"class":450}," dataUrl",[429,971,454],{"class":443},[429,973,816],{"class":815},[429,975,976],{"class":443}," }",[429,978,653],{"class":614},[429,980,982],{"class":431,"line":981},10,[429,983,913],{"emptyLinePlaceholder":912},[429,985,987,989,992,994,996,999,1001,1003,1005,1008,1011],{"class":431,"line":986},11,[429,988,611],{"class":435},[429,990,991],{"class":614}," output ",[429,993,618],{"class":443},[429,995,676],{"class":675},[429,997,998],{"class":621}," serializePdfOutput",[429,1000,960],{"class":614},[429,1002,963],{"class":443},[429,1004,900],{"class":443},[429,1006,1007],{"class":903},"arraybuffer",[429,1009,1010],{"class":443},"'",[429,1012,653],{"class":614},[599,1014,1015,1016,1019,1020,1022,1023,682],{},"Supported output formats are ",[320,1017,1018],{},"blob",", ",[320,1021,1007],{},", and ",[320,1024,1025],{},"base64",[655,1027,1029],{"id":1028},"print","Print",[420,1031,1033],{"className":422,"code":1032,"language":424,"meta":425,"style":425},"await pdfRef.value?.print()\n",[320,1034,1035],{"__ignoreMap":425},[429,1036,1037,1040,1042,1044,1046,1048,1050],{"class":431,"line":432},[429,1038,1039],{"class":675},"await",[429,1041,679],{"class":614},[429,1043,682],{"class":443},[429,1045,685],{"class":614},[429,1047,688],{"class":443},[429,1049,1028],{"class":621},[429,1051,694],{"class":614},[599,1053,1054],{},"Print works through the browser print flow in both Canvas and selectable-text rendering modes.",[655,1056,1058],{"id":1057},"close-preview","Close preview",[420,1060,1062],{"className":422,"code":1061,"language":424,"meta":425,"style":425},"pdfRef.value?.closePreview()\n",[320,1063,1064],{"__ignoreMap":425},[429,1065,1066,1069,1071,1073,1075,1078],{"class":431,"line":432},[429,1067,1068],{"class":614},"pdfRef",[429,1070,682],{"class":443},[429,1072,685],{"class":614},[429,1074,688],{"class":443},[429,1076,1077],{"class":621},"closePreview",[429,1079,694],{"class":614},[655,1081,1083],{"id":1082},"reset-automatic-pagination","Reset automatic pagination",[420,1085,1087],{"className":422,"code":1086,"language":424,"meta":425,"style":425},"pdfRef.value?.resetPagination()\n",[320,1088,1089],{"__ignoreMap":425},[429,1090,1091,1093,1095,1097,1099,1102],{"class":431,"line":432},[429,1092,1068],{"class":614},[429,1094,682],{"class":443},[429,1096,685],{"class":614},[429,1098,688],{"class":443},[429,1100,1101],{"class":621},"resetPagination",[429,1103,694],{"class":614},[599,1105,1106],{},"This removes only automatically inserted page breaks.",[655,1108,1110],{"id":1109},"cancel-active-generation","Cancel active generation",[420,1112,1114],{"className":422,"code":1113,"language":424,"meta":425,"style":425},"pdfRef.value?.cancelGeneration()\n",[320,1115,1116],{"__ignoreMap":425},[429,1117,1118,1120,1122,1124,1126,1129],{"class":431,"line":432},[429,1119,1068],{"class":614},[429,1121,682],{"class":443},[429,1123,685],{"class":614},[429,1125,688],{"class":443},[429,1127,1128],{"class":621},"cancelGeneration",[429,1130,694],{"class":614},[599,1132,1133,1135],{},[320,1134,411],{}," requests cooperative cancellation of the current export.",[1137,1138,1139,1143,1146,1157],"ul",{},[1140,1141,1142],"li",{},"Incremental Canvas rendering checks cancellation around page capture, encoding, insertion, and browser-yield points.",[1140,1144,1145],{},"Selectable-text rendering checks cancellation while walking the DOM, materializing images, paginating, and rendering pages.",[1140,1147,1148,1149,1152,1153,1156],{},"Synchronous browser\u002FjsPDF work such as an already-running ",[320,1150,1151],{},"toDataURL()"," or final ",[320,1154,1155],{},"pdf.output('blob')"," call cannot be interrupted in the middle; cancellation takes effect at the next safe checkpoint.",[1140,1158,1159,1160,1163],{},"Cancellation is treated as an expected abort flow and is not emitted as the component's normal ",[320,1161,1162],{},"error"," event.",[655,1165,1167],{"id":1166},"composable","Composable",[420,1169,1171],{"className":422,"code":1170,"language":424,"meta":425,"style":425},"import { useHtml2Pdf } from 'vue-pdf-export'\n\nconst {\n  loading,\n  progress,\n  stage,\n  progressState,\n  error,\n  pdfUrl,\n  lastResult,\n  generate,\n  download,\n  print,\n  cleanup,\n} = useHtml2Pdf()\n",[320,1172,1173,1192,1196,1202,1209,1216,1223,1230,1237,1244,1251,1258,1266,1273,1281],{"__ignoreMap":425},[429,1174,1175,1177,1179,1182,1184,1186,1188,1190],{"class":431,"line":432},[429,1176,867],{"class":675},[429,1178,966],{"class":443},[429,1180,1181],{"class":614}," useHtml2Pdf",[429,1183,976],{"class":443},[429,1185,897],{"class":675},[429,1187,900],{"class":443},[429,1189,904],{"class":903},[429,1191,907],{"class":443},[429,1193,1194],{"class":431,"line":447},[429,1195,913],{"emptyLinePlaceholder":912},[429,1197,1198,1200],{"class":431,"line":475},[429,1199,611],{"class":435},[429,1201,444],{"class":443},[429,1203,1204,1207],{"class":431,"line":496},[429,1205,1206],{"class":614},"  loading",[429,1208,819],{"class":443},[429,1210,1211,1214],{"class":431,"line":531},[429,1212,1213],{"class":614},"  progress",[429,1215,819],{"class":443},[429,1217,1218,1221],{"class":431,"line":551},[429,1219,1220],{"class":614},"  stage",[429,1222,819],{"class":443},[429,1224,1225,1228],{"class":431,"line":566},[429,1226,1227],{"class":614},"  progressState",[429,1229,819],{"class":443},[429,1231,1232,1235],{"class":431,"line":580},[429,1233,1234],{"class":614},"  error",[429,1236,819],{"class":443},[429,1238,1239,1242],{"class":431,"line":594},[429,1240,1241],{"class":614},"  pdfUrl",[429,1243,819],{"class":443},[429,1245,1246,1249],{"class":431,"line":981},[429,1247,1248],{"class":614},"  lastResult",[429,1250,819],{"class":443},[429,1252,1253,1256],{"class":431,"line":986},[429,1254,1255],{"class":614},"  generate",[429,1257,819],{"class":443},[429,1259,1261,1264],{"class":431,"line":1260},12,[429,1262,1263],{"class":614},"  download",[429,1265,819],{"class":443},[429,1267,1269,1271],{"class":431,"line":1268},13,[429,1270,534],{"class":614},[429,1272,819],{"class":443},[429,1274,1276,1279],{"class":431,"line":1275},14,[429,1277,1278],{"class":614},"  cleanup",[429,1280,819],{"class":443},[429,1282,1284,1286,1289,1291],{"class":431,"line":1283},15,[429,1285,824],{"class":443},[429,1287,1288],{"class":443}," =",[429,1290,1181],{"class":621},[429,1292,694],{"class":614},[1294,1295,1296],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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 .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 .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);}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 .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 .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}",{"title":425,"searchDepth":447,"depth":447,"links":1298},[1299,1304],{"id":290,"depth":447,"text":291,"children":1300},[1301,1302,1303],{"id":657,"depth":475,"text":658},{"id":702,"depth":475,"text":703},{"id":738,"depth":475,"text":739},{"id":853,"depth":447,"text":854,"children":1305},[1306,1307,1308,1309,1310],{"id":1028,"depth":475,"text":1029},{"id":1057,"depth":475,"text":1058},{"id":1082,"depth":475,"text":1083},{"id":1109,"depth":475,"text":1110},{"id":1166,"depth":475,"text":1167},"Use vue-pdf-export programmatically to generate Blob, ArrayBuffer and Base64 output, print PDFs, close previews, reset pagination and cancel generation.","md",null,{},{"title":1316,"description":1311},"Programmatic API (1.1.1 and earlier)","mUVxC2mdvJ4oUSvdFjLs6tv3dkmbMhrgjaSDmmA-Igk",[1319,1321],{"title":202,"path":203,"stem":204,"description":1320,"children":-1},"When enabled, the footer is applied to every PDF page. Header-style selective page targeting is not exposed as a separate footer API.",{"title":43,"path":209,"stem":210,"description":1322,"children":-1},"Build custom vue-pdf-export UI with loaders, progress state, generation metrics, component events and slots for PDF content and user-defined loading experiences.",1792374151638]