[{"data":1,"prerenderedAt":779},["ShallowReactive",2],{"navigation_docs":3,"-api-programmatic-api":139,"-api-programmatic-api-surround":776},[4,55,89],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":54},"API","i-lucide-braces","\u002Fapi","api",[10,14,18,22,26,30,34,38,42,46,50],{"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},"Headers","\u002Fapi\u002Fheaders","api\u002F03.headers",{"title":23,"path":24,"stem":25},"Footers","\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, 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},"Full README Reference","\u002Fapi\u002Ffull-reference","api\u002F11.full-reference",false,{"title":56,"icon":57,"path":58,"stem":59,"children":60,"page":54},"Get Started","i-lucide-book-open","\u002Fget-started","get-started",[61,65,69,73,77,81,85],{"title":62,"path":63,"stem":64},"Introduction","\u002Fget-started\u002Fintroduction","get-started\u002F01.introduction",{"title":66,"path":67,"stem":68},"Installation","\u002Fget-started\u002Finstallation","get-started\u002F02.installation",{"title":70,"path":71,"stem":72},"Quick Start","\u002Fget-started\u002Fquick-start","get-started\u002F03.quick-start",{"title":74,"path":75,"stem":76},"Rendering Modes","\u002Fget-started\u002Frendering-modes","get-started\u002F04.rendering-modes",{"title":78,"path":79,"stem":80},"Component Registration","\u002Fget-started\u002Fregistration","get-started\u002F05.registration",{"title":82,"path":83,"stem":84},"Preview & Download","\u002Fget-started\u002Fpreview-download","get-started\u002F06.preview-download",{"title":86,"path":87,"stem":88},"Pagination","\u002Fget-started\u002Fpagination","get-started\u002F07.pagination",{"title":90,"icon":91,"path":92,"stem":93,"children":94,"page":54},"Use Cases","i-lucide-flask-conical","\u002Fuse-cases","use-cases",[95,99,103,107,111,115,119,123,127,131,135],{"title":96,"path":97,"stem":98},"Playground","\u002Fuse-cases\u002Fplayground","use-cases\u002F01.playground",{"title":100,"path":101,"stem":102},"Selectable Text","\u002Fuse-cases\u002Fselectable-text","use-cases\u002F02.selectable-text",{"title":104,"path":105,"stem":106},"Clickable PDF Links","\u002Fuse-cases\u002Fclickable-links","use-cases\u002F03.clickable-links",{"title":108,"path":109,"stem":110},"Images & CORS","\u002Fuse-cases\u002Fimages-cors","use-cases\u002F04.images-cors",{"title":112,"path":113,"stem":114},"Production Guide","\u002Fuse-cases\u002Fproduction-guide","use-cases\u002F05.production-guide",{"title":116,"path":117,"stem":118},"Troubleshooting","\u002Fuse-cases\u002Ftroubleshooting","use-cases\u002F06.troubleshooting",{"title":120,"path":121,"stem":122},"Testing & Browser Support","\u002Fuse-cases\u002Ftesting-browser-support","use-cases\u002F07.testing-browser-support",{"title":124,"path":125,"stem":126},"Performance Engineering","\u002Fuse-cases\u002Fperformance-engineering","use-cases\u002F08.performance-engineering",{"title":128,"path":129,"stem":130},"Full Performance Engineering Report","\u002Fuse-cases\u002Fperformance-report","use-cases\u002F09.performance-report",{"title":132,"path":133,"stem":134},"Community & Feedback","\u002Fuse-cases\u002Fcommunity","use-cases\u002F10.community",{"title":136,"path":137,"stem":138},"Acknowledgements","\u002Fuse-cases\u002Facknowledgements","use-cases\u002F11.acknowledgements",{"id":140,"title":39,"body":141,"description":260,"extension":770,"links":771,"meta":772,"navigation":651,"path":40,"seo":773,"stem":41,"__hash__":775},"docs\u002Fapi\u002F08.programmatic-api.md",{"type":142,"value":143,"toc":760},"minimark",[144,148,153,250,254,381,384,435,440,476,480,502,506,527,531,551,554,558,578,583,611,615,756],[145,146,39],"h1",{"id":147},"programmatic-api",[149,150,152],"h2",{"id":151},"component-methods","Component methods",[154,155,156,172],"table",{},[157,158,159],"thead",{},[160,161,162,166,169],"tr",{},[163,164,165],"th",{},"Method",[163,167,168],{},"Return",[163,170,171],{},"Purpose",[173,174,175,192,207,222,236],"tbody",{},[160,176,177,184,189],{},[178,179,180],"td",{},[181,182,183],"code",{},"generatePdf()",[178,185,186],{},[181,187,188],{},"Promise\u003CBlob>",[178,190,191],{},"Generate the PDF and return its Blob.",[160,193,194,199,204],{},[178,195,196],{},[181,197,198],{},"print()",[178,200,201],{},[181,202,203],{},"Promise\u003Cvoid>",[178,205,206],{},"Generate\u002Fopen the print flow.",[160,208,209,214,219],{},[178,210,211],{},[181,212,213],{},"closePreview()",[178,215,216],{},[181,217,218],{},"void",[178,220,221],{},"Close the active preview flow.",[160,223,224,229,233],{},[178,225,226],{},[181,227,228],{},"resetPagination()",[178,230,231],{},[181,232,218],{},[178,234,235],{},"Remove automatically inserted page breaks.",[160,237,238,243,247],{},[178,239,240],{},[181,241,242],{},"cancelGeneration()",[178,244,245],{},[181,246,218],{},[178,248,249],{},"Request cooperative cancellation of active generation.",[251,252,253],"p",{},"Component methods:",[255,256,261],"pre",{"className":257,"code":258,"language":259,"meta":260,"style":260},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","interface Html2PdfInstance {\n  generatePdf: () => Promise\u003CBlob>\n  print: () => Promise\u003Cvoid>\n  closePreview: () => void\n  resetPagination: () => void\n  cancelGeneration(): => void \n}\n","ts","",[181,262,263,280,308,328,343,357,375],{"__ignoreMap":260},[264,265,268,272,276],"span",{"class":266,"line":267},"line",1,[264,269,271],{"class":270},"spNyl","interface",[264,273,275],{"class":274},"sBMFI"," Html2PdfInstance",[264,277,279],{"class":278},"sMK4o"," {\n",[264,281,283,287,290,293,296,299,302,305],{"class":266,"line":282},2,[264,284,286],{"class":285},"swJcz","  generatePdf",[264,288,289],{"class":278},":",[264,291,292],{"class":278}," ()",[264,294,295],{"class":270}," =>",[264,297,298],{"class":274}," Promise",[264,300,301],{"class":278},"\u003C",[264,303,304],{"class":274},"Blob",[264,306,307],{"class":278},">\n",[264,309,311,314,316,318,320,322,324,326],{"class":266,"line":310},3,[264,312,313],{"class":285},"  print",[264,315,289],{"class":278},[264,317,292],{"class":278},[264,319,295],{"class":270},[264,321,298],{"class":274},[264,323,301],{"class":278},[264,325,218],{"class":274},[264,327,307],{"class":278},[264,329,331,334,336,338,340],{"class":266,"line":330},4,[264,332,333],{"class":285},"  closePreview",[264,335,289],{"class":278},[264,337,292],{"class":278},[264,339,295],{"class":270},[264,341,342],{"class":274}," void\n",[264,344,346,349,351,353,355],{"class":266,"line":345},5,[264,347,348],{"class":285},"  resetPagination",[264,350,289],{"class":278},[264,352,292],{"class":278},[264,354,295],{"class":270},[264,356,342],{"class":274},[264,358,360,363,366,368,371],{"class":266,"line":359},6,[264,361,362],{"class":285},"  cancelGeneration",[264,364,365],{"class":278},"():",[264,367,295],{"class":270},[264,369,370],{"class":274}," void",[264,372,374],{"class":373},"sTEyZ"," \n",[264,376,378],{"class":266,"line":377},7,[264,379,380],{"class":278},"}\n",[251,382,383],{},"Recommended ref:",[255,385,387],{"className":257,"code":386,"language":259,"meta":260,"style":260},"const pdfRef = ref\u003CInstanceType\u003Ctypeof Html2Pdf> | null>(null)\n",[181,388,389],{"__ignoreMap":260},[264,390,391,394,397,400,404,406,409,412,415,418,421,424,426,429,432],{"class":266,"line":267},[264,392,393],{"class":270},"const",[264,395,396],{"class":373}," pdfRef ",[264,398,399],{"class":278},"=",[264,401,403],{"class":402},"s2Zo4"," ref",[264,405,301],{"class":278},[264,407,408],{"class":274},"InstanceType",[264,410,411],{"class":278},"\u003Ctypeof",[264,413,414],{"class":373}," Html2Pdf",[264,416,417],{"class":278},">",[264,419,420],{"class":278}," |",[264,422,423],{"class":274}," null",[264,425,417],{"class":278},[264,427,428],{"class":373},"(",[264,430,431],{"class":278},"null",[264,433,434],{"class":373},")\n",[436,437,439],"h3",{"id":438},"generate","Generate",[255,441,443],{"className":257,"code":442,"language":259,"meta":260,"style":260},"const blob = await pdfRef.value?.generatePdf()\n",[181,444,445],{"__ignoreMap":260},[264,446,447,449,452,454,458,461,464,467,470,473],{"class":266,"line":267},[264,448,393],{"class":270},[264,450,451],{"class":373}," blob ",[264,453,399],{"class":278},[264,455,457],{"class":456},"s7zQu"," await",[264,459,460],{"class":373}," pdfRef",[264,462,463],{"class":278},".",[264,465,466],{"class":373},"value",[264,468,469],{"class":278},"?.",[264,471,472],{"class":402},"generatePdf",[264,474,475],{"class":373},"()\n",[436,477,479],{"id":478},"print","Print",[255,481,483],{"className":257,"code":482,"language":259,"meta":260,"style":260},"await pdfRef.value?.print()\n",[181,484,485],{"__ignoreMap":260},[264,486,487,490,492,494,496,498,500],{"class":266,"line":267},[264,488,489],{"class":456},"await",[264,491,460],{"class":373},[264,493,463],{"class":278},[264,495,466],{"class":373},[264,497,469],{"class":278},[264,499,478],{"class":402},[264,501,475],{"class":373},[436,503,505],{"id":504},"close-preview","Close preview",[255,507,509],{"className":257,"code":508,"language":259,"meta":260,"style":260},"pdfRef.value?.closePreview()\n",[181,510,511],{"__ignoreMap":260},[264,512,513,516,518,520,522,525],{"class":266,"line":267},[264,514,515],{"class":373},"pdfRef",[264,517,463],{"class":278},[264,519,466],{"class":373},[264,521,469],{"class":278},[264,523,524],{"class":402},"closePreview",[264,526,475],{"class":373},[436,528,530],{"id":529},"reset-automatic-pagination","Reset automatic pagination",[255,532,534],{"className":257,"code":533,"language":259,"meta":260,"style":260},"pdfRef.value?.resetPagination()\n",[181,535,536],{"__ignoreMap":260},[264,537,538,540,542,544,546,549],{"class":266,"line":267},[264,539,515],{"class":373},[264,541,463],{"class":278},[264,543,466],{"class":373},[264,545,469],{"class":278},[264,547,548],{"class":402},"resetPagination",[264,550,475],{"class":373},[251,552,553],{},"This removes only automatically inserted page breaks.",[436,555,557],{"id":556},"cancel-active-generation","Cancel active generation",[255,559,561],{"className":257,"code":560,"language":259,"meta":260,"style":260},"pdfRef.value?.cancelGeneration()\n",[181,562,563],{"__ignoreMap":260},[264,564,565,567,569,571,573,576],{"class":266,"line":267},[264,566,515],{"class":373},[264,568,463],{"class":278},[264,570,466],{"class":373},[264,572,469],{"class":278},[264,574,575],{"class":402},"cancelGeneration",[264,577,475],{"class":373},[251,579,580,582],{},[181,581,242],{}," requests cooperative cancellation of the current export.",[584,585,586,590,593,604],"ul",{},[587,588,589],"li",{},"Incremental Canvas rendering checks cancellation around page capture, encoding, insertion, and browser-yield points.",[587,591,592],{},"Selectable-text rendering checks cancellation while walking the DOM, materializing images, paginating, and rendering pages.",[587,594,595,596,599,600,603],{},"Synchronous browser\u002FjsPDF work such as an already-running ",[181,597,598],{},"toDataURL()"," or final ",[181,601,602],{},"pdf.output('blob')"," call cannot be interrupted in the middle; cancellation takes effect at the next safe checkpoint.",[587,605,606,607,610],{},"Cancellation is treated as an expected abort flow and is not emitted as the component's normal ",[181,608,609],{},"error"," event.",[436,612,614],{"id":613},"composable","Composable",[255,616,618],{"className":257,"code":617,"language":259,"meta":260,"style":260},"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",[181,619,620,647,653,659,667,674,681,688,696,704,712,720,728,735,743],{"__ignoreMap":260},[264,621,622,625,628,631,634,637,640,644],{"class":266,"line":267},[264,623,624],{"class":456},"import",[264,626,627],{"class":278}," {",[264,629,630],{"class":373}," useHtml2Pdf",[264,632,633],{"class":278}," }",[264,635,636],{"class":456}," from",[264,638,639],{"class":278}," '",[264,641,643],{"class":642},"sfazB","vue-pdf-export",[264,645,646],{"class":278},"'\n",[264,648,649],{"class":266,"line":282},[264,650,652],{"emptyLinePlaceholder":651},true,"\n",[264,654,655,657],{"class":266,"line":310},[264,656,393],{"class":270},[264,658,279],{"class":278},[264,660,661,664],{"class":266,"line":330},[264,662,663],{"class":373},"  loading",[264,665,666],{"class":278},",\n",[264,668,669,672],{"class":266,"line":345},[264,670,671],{"class":373},"  progress",[264,673,666],{"class":278},[264,675,676,679],{"class":266,"line":359},[264,677,678],{"class":373},"  stage",[264,680,666],{"class":278},[264,682,683,686],{"class":266,"line":377},[264,684,685],{"class":373},"  progressState",[264,687,666],{"class":278},[264,689,691,694],{"class":266,"line":690},8,[264,692,693],{"class":373},"  error",[264,695,666],{"class":278},[264,697,699,702],{"class":266,"line":698},9,[264,700,701],{"class":373},"  pdfUrl",[264,703,666],{"class":278},[264,705,707,710],{"class":266,"line":706},10,[264,708,709],{"class":373},"  lastResult",[264,711,666],{"class":278},[264,713,715,718],{"class":266,"line":714},11,[264,716,717],{"class":373},"  generate",[264,719,666],{"class":278},[264,721,723,726],{"class":266,"line":722},12,[264,724,725],{"class":373},"  download",[264,727,666],{"class":278},[264,729,731,733],{"class":266,"line":730},13,[264,732,313],{"class":373},[264,734,666],{"class":278},[264,736,738,741],{"class":266,"line":737},14,[264,739,740],{"class":373},"  cleanup",[264,742,666],{"class":278},[264,744,746,749,752,754],{"class":266,"line":745},15,[264,747,748],{"class":278},"}",[264,750,751],{"class":278}," =",[264,753,630],{"class":402},[264,755,475],{"class":373},[757,758,759],"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 .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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 .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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}",{"title":260,"searchDepth":282,"depth":282,"links":761},[762],{"id":151,"depth":282,"text":152,"children":763},[764,765,766,767,768,769],{"id":438,"depth":310,"text":439},{"id":478,"depth":310,"text":479},{"id":504,"depth":310,"text":505},{"id":529,"depth":310,"text":530},{"id":556,"depth":310,"text":557},{"id":613,"depth":310,"text":614},"md",null,{},{"description":774,"title":39},"Generate, print, close preview, reset pagination and cancel generation programmatically.","0B84k_bk4NktXEERT7mD9ZxgKCL3iLXFz4OQJw2HF_8",[777,778],{"title":35,"path":36,"stem":37,"description":260,"children":-1},{"title":43,"path":44,"stem":45,"description":260,"children":-1},1788876781595]