[{"data":1,"prerenderedAt":1245},["ShallowReactive",2],{"navigation_docs_en":3,"-en-docx-overview":335,"-en-docx-overview-surround":1240},[4,31,61,91,175,256],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting Started","i-lucide-rocket","\u002Fen\u002Fgetting-started","en\u002F01.getting-started",[10,14,18,22,26],{"title":11,"path":12,"stem":13},"Introduction","\u002Fen\u002Fgetting-started\u002Fintroduction","en\u002F01.getting-started\u002F01.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fen\u002Fgetting-started\u002Finstallation","en\u002F01.getting-started\u002F02.installation",{"title":19,"path":20,"stem":21},"Command Line Interface (CLI)","\u002Fen\u002Fgetting-started\u002Fcommand-line-interface","en\u002F01.getting-started\u002F03.command-line-interface",{"title":23,"path":24,"stem":25},"AI Tools","\u002Fen\u002Fgetting-started\u002Fai-tools","en\u002F01.getting-started\u002F04.ai-tools",{"title":27,"path":28,"stem":29},"AI Integration","\u002Fen\u002Fgetting-started\u002Fai-integration","en\u002F01.getting-started\u002F05.ai-integration",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"CORE","i-lucide-box","\u002Fen\u002Fcore","en\u002F02.core",[37,41,45,49,53,57],{"title":38,"path":39,"stem":40},"@office-open\u002Fcore","\u002Fen\u002Fcore\u002Foverview","en\u002F02.core\u002F01.overview",{"title":42,"path":43,"stem":44},"Descriptor System","\u002Fen\u002Fcore\u002Fdescriptors","en\u002F02.core\u002F02.descriptors",{"title":46,"path":47,"stem":48},"Values and Validation","\u002Fen\u002Fcore\u002Fvalues","en\u002F02.core\u002F03.values",{"title":50,"path":51,"stem":52},"Unit Converters","\u002Fen\u002Fcore\u002Fconverters","en\u002F02.core\u002F04.converters",{"title":54,"path":55,"stem":56},"Charts","\u002Fen\u002Fcore\u002Fcharts","en\u002F02.core\u002F05.charts",{"title":58,"path":59,"stem":60},"Parser","\u002Fen\u002Fcore\u002Fparser","en\u002F02.core\u002F06.parser",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":30},"XML","i-lucide-code-xml","\u002Fen\u002Fxml","en\u002F03.xml",[67,71,75,79,83,87],{"title":68,"path":69,"stem":70},"@office-open\u002Fxml","\u002Fen\u002Fxml\u002Foverview","en\u002F03.xml\u002F01.overview",{"title":72,"path":73,"stem":74},"Parsing","\u002Fen\u002Fxml\u002Fparsing","en\u002F03.xml\u002F02.parsing",{"title":76,"path":77,"stem":78},"Serialization","\u002Fen\u002Fxml\u002Fserialization","en\u002F03.xml\u002F03.serialization",{"title":80,"path":81,"stem":82},"Query Utilities","\u002Fen\u002Fxml\u002Fquery-utilities","en\u002F03.xml\u002F04.query-utilities",{"title":84,"path":85,"stem":86},"XML Escape","\u002Fen\u002Fxml\u002Fescape","en\u002F03.xml\u002F05.escape",{"title":88,"path":89,"stem":90},"Type Reference","\u002Fen\u002Fxml\u002Ftypes","en\u002F03.xml\u002F06.types",{"title":92,"icon":93,"path":94,"stem":95,"children":96,"page":30},"DOCX","i-lucide-file-text","\u002Fen\u002Fdocx","en\u002F04.docx",[97,101,105,109,113,117,121,124,128,132,136,140,144,148,152,156,160,164,168,171],{"title":98,"path":99,"stem":100},"@office-open\u002Fdocx","\u002Fen\u002Fdocx\u002Foverview","en\u002F04.docx\u002F01.overview",{"title":102,"path":103,"stem":104},"Quick Start","\u002Fen\u002Fdocx\u002Fquickstart","en\u002F04.docx\u002F02.quickstart",{"title":106,"path":107,"stem":108},"Text and Paragraphs","\u002Fen\u002Fdocx\u002Ftext-and-paragraphs","en\u002F04.docx\u002F03.text-and-paragraphs",{"title":110,"path":111,"stem":112},"Tables","\u002Fen\u002Fdocx\u002Ftables","en\u002F04.docx\u002F04.tables",{"title":114,"path":115,"stem":116},"Images","\u002Fen\u002Fdocx\u002Fimages","en\u002F04.docx\u002F05.images",{"title":118,"path":119,"stem":120},"Text Boxes","\u002Fen\u002Fdocx\u002Ftextbox","en\u002F04.docx\u002F06.textbox",{"title":54,"path":122,"stem":123},"\u002Fen\u002Fdocx\u002Fcharts","en\u002F04.docx\u002F07.charts",{"title":125,"path":126,"stem":127},"SmartArt","\u002Fen\u002Fdocx\u002Fsmartart","en\u002F04.docx\u002F08.smartart",{"title":129,"path":130,"stem":131},"Media","\u002Fen\u002Fdocx\u002Fmedia","en\u002F04.docx\u002F09.media",{"title":133,"path":134,"stem":135},"Links","\u002Fen\u002Fdocx\u002Flinks","en\u002F04.docx\u002F10.links",{"title":137,"path":138,"stem":139},"Headers and Footers","\u002Fen\u002Fdocx\u002Fheaders-and-footers","en\u002F04.docx\u002F11.headers-and-footers",{"title":141,"path":142,"stem":143},"Equations and Symbols","\u002Fen\u002Fdocx\u002Fequations-and-symbols","en\u002F04.docx\u002F12.equations-and-symbols",{"title":145,"path":146,"stem":147},"Styles and Themes","\u002Fen\u002Fdocx\u002Fstyles-and-themes","en\u002F04.docx\u002F13.styles-and-themes",{"title":149,"path":150,"stem":151},"Page Layout","\u002Fen\u002Fdocx\u002Fpage-layout","en\u002F04.docx\u002F14.page-layout",{"title":153,"path":154,"stem":155},"References","\u002Fen\u002Fdocx\u002Freferences","en\u002F04.docx\u002F15.references",{"title":157,"path":158,"stem":159},"Comments and Revisions","\u002Fen\u002Fdocx\u002Fcomments-and-revisions","en\u002F04.docx\u002F16.comments-and-revisions",{"title":161,"path":162,"stem":163},"Document Properties","\u002Fen\u002Fdocx\u002Fproperties","en\u002F04.docx\u002F17.properties",{"title":165,"path":166,"stem":167},"Export","\u002Fen\u002Fdocx\u002Fexport","en\u002F04.docx\u002F18.export",{"title":72,"path":169,"stem":170},"\u002Fen\u002Fdocx\u002Fparsing","en\u002F04.docx\u002F19.parsing",{"title":172,"path":173,"stem":174},"Patching","\u002Fen\u002Fdocx\u002Fpatch","en\u002F04.docx\u002F20.patch",{"title":176,"icon":177,"path":178,"stem":179,"children":180,"page":30},"PPTX","i-lucide-presentation","\u002Fen\u002Fpptx","en\u002F05.pptx",[181,185,188,192,195,198,201,204,207,210,214,217,220,224,227,231,235,239,243,247,250,253],{"title":182,"path":183,"stem":184},"@office-open\u002Fpptx","\u002Fen\u002Fpptx\u002Foverview","en\u002F05.pptx\u002F01.overview",{"title":102,"path":186,"stem":187},"\u002Fen\u002Fpptx\u002Fquickstart","en\u002F05.pptx\u002F02.quickstart",{"title":189,"path":190,"stem":191},"Shapes and Text","\u002Fen\u002Fpptx\u002Fshapes-and-text","en\u002F05.pptx\u002F03.shapes-and-text",{"title":110,"path":193,"stem":194},"\u002Fen\u002Fpptx\u002Ftables","en\u002F05.pptx\u002F04.tables",{"title":114,"path":196,"stem":197},"\u002Fen\u002Fpptx\u002Fimages","en\u002F05.pptx\u002F05.images",{"title":54,"path":199,"stem":200},"\u002Fen\u002Fpptx\u002Fcharts","en\u002F05.pptx\u002F06.charts",{"title":125,"path":202,"stem":203},"\u002Fen\u002Fpptx\u002Fsmartart","en\u002F05.pptx\u002F07.smartart",{"title":129,"path":205,"stem":206},"\u002Fen\u002Fpptx\u002Fmedia","en\u002F05.pptx\u002F08.media",{"title":133,"path":208,"stem":209},"\u002Fen\u002Fpptx\u002Flinks","en\u002F05.pptx\u002F09.links",{"title":211,"path":212,"stem":213},"Lines and Connectors","\u002Fen\u002Fpptx\u002Flines-and-connectors","en\u002F05.pptx\u002F10.lines-and-connectors",{"title":137,"path":215,"stem":216},"\u002Fen\u002Fpptx\u002Fheaders-and-footers","en\u002F05.pptx\u002F11.headers-and-footers",{"title":141,"path":218,"stem":219},"\u002Fen\u002Fpptx\u002Fequations-and-symbols","en\u002F05.pptx\u002F12.equations-and-symbols",{"title":221,"path":222,"stem":223},"Slide Layout","\u002Fen\u002Fpptx\u002Fslide-layout","en\u002F05.pptx\u002F13.slide-layout",{"title":145,"path":225,"stem":226},"\u002Fen\u002Fpptx\u002Fstyles-and-themes","en\u002F05.pptx\u002F14.styles-and-themes",{"title":228,"path":229,"stem":230},"Effects and Fills","\u002Fen\u002Fpptx\u002Feffects-and-fills","en\u002F05.pptx\u002F15.effects-and-fills",{"title":232,"path":233,"stem":234},"Transitions","\u002Fen\u002Fpptx\u002Ftransitions","en\u002F05.pptx\u002F16.transitions",{"title":236,"path":237,"stem":238},"Animations","\u002Fen\u002Fpptx\u002Fanimations","en\u002F05.pptx\u002F17.animations",{"title":240,"path":241,"stem":242},"Comments","\u002Fen\u002Fpptx\u002Fcomments","en\u002F05.pptx\u002F18.comments",{"title":244,"path":245,"stem":246},"Presentation Properties","\u002Fen\u002Fpptx\u002Fproperties","en\u002F05.pptx\u002F19.properties",{"title":165,"path":248,"stem":249},"\u002Fen\u002Fpptx\u002Fexport","en\u002F05.pptx\u002F20.export",{"title":72,"path":251,"stem":252},"\u002Fen\u002Fpptx\u002Fparsing","en\u002F05.pptx\u002F21.parsing",{"title":172,"path":254,"stem":255},"\u002Fen\u002Fpptx\u002Fpatch","en\u002F05.pptx\u002F22.patch",{"title":257,"icon":258,"path":259,"stem":260,"children":261,"page":30},"XLSX","i-lucide-table-2","\u002Fen\u002Fxlsx","en\u002F06.xlsx",[262,266,269,273,277,281,285,289,292,295,299,303,307,311,314,318,322,326,329,332],{"title":263,"path":264,"stem":265},"@office-open\u002Fxlsx","\u002Fen\u002Fxlsx\u002Foverview","en\u002F06.xlsx\u002F01.overview",{"title":102,"path":267,"stem":268},"\u002Fen\u002Fxlsx\u002Fquickstart","en\u002F06.xlsx\u002F02.quickstart",{"title":270,"path":271,"stem":272},"Cells & Data","\u002Fen\u002Fxlsx\u002Fcells","en\u002F06.xlsx\u002F03.cells",{"title":274,"path":275,"stem":276},"Styles","\u002Fen\u002Fxlsx\u002Fstyles","en\u002F06.xlsx\u002F04.styles",{"title":278,"path":279,"stem":280},"Merge, Columns & Rows","\u002Fen\u002Fxlsx\u002Fmerge-col-row","en\u002F06.xlsx\u002F05.merge-col-row",{"title":282,"path":283,"stem":284},"Hyperlinks","\u002Fen\u002Fxlsx\u002Flinks","en\u002F06.xlsx\u002F06.links",{"title":286,"path":287,"stem":288},"Pivot Tables","\u002Fen\u002Fxlsx\u002Fpivot-tables","en\u002F06.xlsx\u002F07.pivot-tables",{"title":114,"path":290,"stem":291},"\u002Fen\u002Fxlsx\u002Fimages","en\u002F06.xlsx\u002F08.images",{"title":54,"path":293,"stem":294},"\u002Fen\u002Fxlsx\u002Fcharts","en\u002F06.xlsx\u002F09.charts",{"title":296,"path":297,"stem":298},"Page Setup & Headers\u002FFooters","\u002Fen\u002Fxlsx\u002Fpage-setup","en\u002F06.xlsx\u002F10.page-setup",{"title":300,"path":301,"stem":302},"Formulas","\u002Fen\u002Fxlsx\u002Fformulas","en\u002F06.xlsx\u002F11.formulas",{"title":304,"path":305,"stem":306},"Freeze Panes & Auto Filter","\u002Fen\u002Fxlsx\u002Ffreeze-filter","en\u002F06.xlsx\u002F12.freeze-filter",{"title":308,"path":309,"stem":310},"Data Validation","\u002Fen\u002Fxlsx\u002Fvalidation","en\u002F06.xlsx\u002F13.validation",{"title":240,"path":312,"stem":313},"\u002Fen\u002Fxlsx\u002Fcomments","en\u002F06.xlsx\u002F14.comments",{"title":315,"path":316,"stem":317},"Protection","\u002Fen\u002Fxlsx\u002Fprotection","en\u002F06.xlsx\u002F15.protection",{"title":319,"path":320,"stem":321},"Shared Workbook Revisions","\u002Fen\u002Fxlsx\u002Frevisions","en\u002F06.xlsx\u002F16.revisions",{"title":323,"path":324,"stem":325},"Workbook Properties","\u002Fen\u002Fxlsx\u002Fproperties","en\u002F06.xlsx\u002F17.properties",{"title":165,"path":327,"stem":328},"\u002Fen\u002Fxlsx\u002Fexport","en\u002F06.xlsx\u002F18.export",{"title":72,"path":330,"stem":331},"\u002Fen\u002Fxlsx\u002Fparsing","en\u002F06.xlsx\u002F19.parsing",{"title":172,"path":333,"stem":334},"\u002Fen\u002Fxlsx\u002Fpatch","en\u002F06.xlsx\u002F20.patch",{"id":336,"title":98,"body":337,"description":1234,"extension":1235,"links":1236,"meta":1237,"navigation":576,"path":99,"seo":1238,"stem":100,"__hash__":1239},"docs_en\u002Fen\u002F04.docx\u002F01.overview.md",{"type":338,"value":339,"toc":1227},"minimark",[340,344,416,419,681,685,946,949,961,1109,1117,1121,1132,1223],[341,342,15],"h2",{"id":343},"installation",[345,346,347,373,388,402],"code-group",{},[348,349,355],"pre",{"className":350,"code":351,"filename":352,"language":353,"meta":354,"style":354},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add @office-open\u002Fdocx\n","pnpm","bash","",[356,357,358],"code",{"__ignoreMap":354},[359,360,363,366,370],"span",{"class":361,"line":362},"line",1,[359,364,352],{"class":365},"sBMFI",[359,367,369],{"class":368},"sfazB"," add",[359,371,372],{"class":368}," @office-open\u002Fdocx\n",[348,374,377],{"className":350,"code":375,"filename":376,"language":353,"meta":354,"style":354},"npm install @office-open\u002Fdocx\n","npm",[356,378,379],{"__ignoreMap":354},[359,380,381,383,386],{"class":361,"line":362},[359,382,376],{"class":365},[359,384,385],{"class":368}," install",[359,387,372],{"class":368},[348,389,392],{"className":350,"code":390,"filename":391,"language":353,"meta":354,"style":354},"yarn add @office-open\u002Fdocx\n","yarn",[356,393,394],{"__ignoreMap":354},[359,395,396,398,400],{"class":361,"line":362},[359,397,391],{"class":365},[359,399,369],{"class":368},[359,401,372],{"class":368},[348,403,406],{"className":350,"code":404,"filename":405,"language":353,"meta":354,"style":354},"bun add @office-open\u002Fdocx\n","bun",[356,407,408],{"__ignoreMap":354},[359,409,410,412,414],{"class":361,"line":362},[359,411,405],{"class":365},[359,413,369],{"class":368},[359,415,372],{"class":368},[341,417,102],{"id":418},"quick-start",[420,421,423,538],"api-example",{"type":422},"docx",[348,424,429],{"className":425,"code":426,"filename":427,"language":428,"meta":354,"style":354},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"sections\": [\n    {\n      \"children\": [{ \"paragraph\": { \"children\": [\"Hello World\"] } }]\n    }\n  ]\n}\n","JSON","json",[356,430,431,437,456,462,520,526,532],{"__ignoreMap":354},[359,432,433],{"class":361,"line":362},[359,434,436],{"class":435},"sMK4o","{\n",[359,438,440,443,447,450,453],{"class":361,"line":439},2,[359,441,442],{"class":435},"  \"",[359,444,446],{"class":445},"spNyl","sections",[359,448,449],{"class":435},"\"",[359,451,452],{"class":435},":",[359,454,455],{"class":435}," [\n",[359,457,459],{"class":361,"line":458},3,[359,460,461],{"class":435},"    {\n",[359,463,465,468,471,473,475,478,481,485,487,489,492,494,497,499,501,504,506,509,511,514,517],{"class":361,"line":464},4,[359,466,467],{"class":435},"      \"",[359,469,470],{"class":365},"children",[359,472,449],{"class":435},[359,474,452],{"class":435},[359,476,477],{"class":435}," [{",[359,479,480],{"class":435}," \"",[359,482,484],{"class":483},"sbssI","paragraph",[359,486,449],{"class":435},[359,488,452],{"class":435},[359,490,491],{"class":435}," {",[359,493,480],{"class":435},[359,495,470],{"class":496},"swJcz",[359,498,449],{"class":435},[359,500,452],{"class":435},[359,502,503],{"class":435}," [",[359,505,449],{"class":435},[359,507,508],{"class":368},"Hello World",[359,510,449],{"class":435},[359,512,513],{"class":435},"]",[359,515,516],{"class":435}," }",[359,518,519],{"class":435}," }]\n",[359,521,523],{"class":361,"line":522},5,[359,524,525],{"class":435},"    }\n",[359,527,529],{"class":361,"line":528},6,[359,530,531],{"class":435},"  ]\n",[359,533,535],{"class":361,"line":534},7,[359,536,537],{"class":435},"}\n",[348,539,544],{"className":540,"code":541,"filename":542,"language":543,"meta":354,"style":354},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { generateDocument } from \"@office-open\u002Fdocx\";\n\nconst buffer = await generateDocument({\n  sections: [\n    {\n      children: [{ paragraph: { children: [\"Hello World\"] } }],\n    },\n  ],\n});\n","TypeScript","ts",[356,545,546,572,578,600,609,613,658,663,671],{"__ignoreMap":354},[359,547,548,552,554,558,560,563,565,567,569],{"class":361,"line":362},[359,549,551],{"class":550},"s7zQu","import",[359,553,491],{"class":435},[359,555,557],{"class":556},"sTEyZ"," generateDocument",[359,559,516],{"class":435},[359,561,562],{"class":550}," from",[359,564,480],{"class":435},[359,566,98],{"class":368},[359,568,449],{"class":435},[359,570,571],{"class":435},";\n",[359,573,574],{"class":361,"line":439},[359,575,577],{"emptyLinePlaceholder":576},true,"\n",[359,579,580,583,586,589,592,595,598],{"class":361,"line":458},[359,581,582],{"class":445},"const",[359,584,585],{"class":556}," buffer ",[359,587,588],{"class":435},"=",[359,590,591],{"class":550}," await",[359,593,557],{"class":594},"s2Zo4",[359,596,597],{"class":556},"(",[359,599,436],{"class":435},[359,601,602,605,607],{"class":361,"line":464},[359,603,604],{"class":496},"  sections",[359,606,452],{"class":435},[359,608,455],{"class":556},[359,610,611],{"class":361,"line":522},[359,612,461],{"class":435},[359,614,615,618,620,622,625,628,630,632,635,637,639,641,643,645,648,651,653,655],{"class":361,"line":528},[359,616,617],{"class":496},"      children",[359,619,452],{"class":435},[359,621,503],{"class":556},[359,623,624],{"class":435},"{",[359,626,627],{"class":496}," paragraph",[359,629,452],{"class":435},[359,631,491],{"class":435},[359,633,634],{"class":496}," children",[359,636,452],{"class":435},[359,638,503],{"class":556},[359,640,449],{"class":435},[359,642,508],{"class":368},[359,644,449],{"class":435},[359,646,647],{"class":556},"] ",[359,649,650],{"class":435},"}",[359,652,516],{"class":435},[359,654,513],{"class":556},[359,656,657],{"class":435},",\n",[359,659,660],{"class":361,"line":534},[359,661,662],{"class":435},"    },\n",[359,664,666,669],{"class":361,"line":665},8,[359,667,668],{"class":556},"  ]",[359,670,657],{"class":435},[359,672,674,676,679],{"class":361,"line":673},9,[359,675,650],{"class":435},[359,677,678],{"class":556},")",[359,680,571],{"class":435},[341,682,684],{"id":683},"main-components","Main Components",[686,687,688,701],"table",{},[689,690,691],"thead",{},[692,693,694,698],"tr",{},[695,696,697],"th",{},"Component",[695,699,700],{},"Description",[702,703,704,714,723,735,745,755,765,775,789,803,813,823,833,843,853,866,876,886,896,909,919,935],"tbody",{},[692,705,706,711],{},[707,708,709],"td",{},[356,710,446],{},[707,712,713],{},"Root document options with sections and properties",[692,715,716,720],{},[707,717,718],{},[356,719,484],{},[707,721,722],{},"Text paragraph with formatting, alignment, and spacing",[692,724,725,732],{},[707,726,727,728,731],{},"text runs (strings or ",[356,729,730],{},"{ text, bold, ... }"," objects)",[707,733,734],{},"Inline text with font, size, color, and style",[692,736,737,742],{},[707,738,739,741],{},[356,740,686],{}," with rows and cells",[707,743,744],{},"Structured tables with merged cells and borders",[692,746,747,752],{},[707,748,749],{},[356,750,751],{},"picture",[707,753,754],{},"Embedded images with transformation and positioning",[692,756,757,762],{},[707,758,759],{},[356,760,761],{},"chart",[707,763,764],{},"Bar, line, pie, area, and scatter charts",[692,766,767,772],{},[707,768,769],{},[356,770,771],{},"smartArt",[707,773,774],{},"Predefined SmartArt diagrams",[692,776,777,786],{},[707,778,779,782,783],{},[356,780,781],{},"headers"," \u002F ",[356,784,785],{},"footers",[707,787,788],{},"Section headers and footers",[692,790,791,800],{},[707,792,793,796,797],{},[356,794,795],{},"footnoteReference",", ",[356,798,799],{},"endnoteReference",[707,801,802],{},"Footnotes and endnotes",[692,804,805,810],{},[707,806,807],{},[356,808,809],{},"toc",[707,811,812],{},"Auto-generated table of contents",[692,814,815,820],{},[707,816,817],{},[356,818,819],{},"bookmark",[707,821,822],{},"Internal bookmarks and cross-references",[692,824,825,830],{},[707,826,827],{},[356,828,829],{},"math",[707,831,832],{},"Mathematical equations via Office MathML (OMML)",[692,834,835,840],{},[707,836,837],{},[356,838,839],{},"styles",[707,841,842],{},"Declarative style definitions",[692,844,845,850],{},[707,846,847],{},[356,848,849],{},"hyperlink",[707,851,852],{},"External and internal hyperlinks",[692,854,855,863],{},[707,856,857,796,860],{},[356,858,859],{},"comment",[356,861,862],{},"commentReference",[707,864,865],{},"Document comments with author and date tracking",[692,867,868,873],{},[707,869,870],{},[356,871,872],{},"textbox",[707,874,875],{},"Floating text boxes with content and styling",[692,877,878,883],{},[707,879,880],{},[356,881,882],{},"formField",[707,884,885],{},"Form fields — checkbox, dropdown, text input",[692,887,888,893],{},[707,889,890],{},[356,891,892],{},"sdt",[707,894,895],{},"Structured document tags (SDT) for form-like documents",[692,897,898,906],{},[707,899,900,796,903],{},[356,901,902],{},"insertion",[356,904,905],{},"deletion",[707,907,908],{},"Track changes — insertions and deletions",[692,910,911,916],{},[707,912,913],{},[356,914,915],{},"numbering",[707,917,918],{},"Numbered and bulleted lists with multiple levels",[692,920,921,932],{},[707,922,923,796,926,796,929],{},[356,924,925],{},"symbolRun",[356,927,928],{},"pageBreak",[356,930,931],{},"columnBreak",[707,933,934],{},"Special characters, page breaks, and column breaks",[692,936,937,943],{},[707,938,939,942],{},[356,940,941],{},"section"," properties",[707,944,945],{},"Page size, margins, orientation, columns, and borders",[341,947,172],{"id":948},"patching",[950,951,952,953,956,957,960],"p",{},"Modify existing ",[356,954,955],{},".docx"," templates by replacing ",[356,958,959],{},"{{placeholder}}"," tokens with new content:",[348,962,964],{"className":540,"code":963,"language":543,"meta":354,"style":354},"import { patchDocument } from \"@office-open\u002Fdocx\";\n\nconst result = await patchDocument({\n  outputType: \"nodebuffer\",\n  data: templateBuffer,\n  placeholders: {\n    name: { type: \"paragraph\", children: [{ text: \"John Doe\" }] },\n  },\n});\n",[356,965,966,987,991,1008,1024,1036,1046,1096,1101],{"__ignoreMap":354},[359,967,968,970,972,975,977,979,981,983,985],{"class":361,"line":362},[359,969,551],{"class":550},[359,971,491],{"class":435},[359,973,974],{"class":556}," patchDocument",[359,976,516],{"class":435},[359,978,562],{"class":550},[359,980,480],{"class":435},[359,982,98],{"class":368},[359,984,449],{"class":435},[359,986,571],{"class":435},[359,988,989],{"class":361,"line":439},[359,990,577],{"emptyLinePlaceholder":576},[359,992,993,995,998,1000,1002,1004,1006],{"class":361,"line":458},[359,994,582],{"class":445},[359,996,997],{"class":556}," result ",[359,999,588],{"class":435},[359,1001,591],{"class":550},[359,1003,974],{"class":594},[359,1005,597],{"class":556},[359,1007,436],{"class":435},[359,1009,1010,1013,1015,1017,1020,1022],{"class":361,"line":464},[359,1011,1012],{"class":496},"  outputType",[359,1014,452],{"class":435},[359,1016,480],{"class":435},[359,1018,1019],{"class":368},"nodebuffer",[359,1021,449],{"class":435},[359,1023,657],{"class":435},[359,1025,1026,1029,1031,1034],{"class":361,"line":522},[359,1027,1028],{"class":496},"  data",[359,1030,452],{"class":435},[359,1032,1033],{"class":556}," templateBuffer",[359,1035,657],{"class":435},[359,1037,1038,1041,1043],{"class":361,"line":528},[359,1039,1040],{"class":496},"  placeholders",[359,1042,452],{"class":435},[359,1044,1045],{"class":435}," {\n",[359,1047,1048,1051,1053,1055,1058,1060,1062,1064,1066,1069,1071,1073,1075,1077,1080,1082,1084,1087,1089,1091,1093],{"class":361,"line":534},[359,1049,1050],{"class":496},"    name",[359,1052,452],{"class":435},[359,1054,491],{"class":435},[359,1056,1057],{"class":496}," type",[359,1059,452],{"class":435},[359,1061,480],{"class":435},[359,1063,484],{"class":368},[359,1065,449],{"class":435},[359,1067,1068],{"class":435},",",[359,1070,634],{"class":496},[359,1072,452],{"class":435},[359,1074,503],{"class":556},[359,1076,624],{"class":435},[359,1078,1079],{"class":496}," text",[359,1081,452],{"class":435},[359,1083,480],{"class":435},[359,1085,1086],{"class":368},"John Doe",[359,1088,449],{"class":435},[359,1090,516],{"class":435},[359,1092,647],{"class":556},[359,1094,1095],{"class":435},"},\n",[359,1097,1098],{"class":361,"line":665},[359,1099,1100],{"class":435},"  },\n",[359,1102,1103,1105,1107],{"class":361,"line":673},[359,1104,650],{"class":435},[359,1106,678],{"class":556},[359,1108,571],{"class":435},[950,1110,1111,1112,1116],{},"See ",[1113,1114,172],"a",{"href":1115},".\u002Fpatch"," for full documentation.",[341,1118,1120],{"id":1119},"export-formats","Export Formats",[950,1122,1123,1124,1127,1128,1131],{},"Every async function has a synchronous counterpart (e.g., ",[356,1125,1126],{},"generateDocumentSync","). See the ",[1113,1129,165],{"href":1130},".\u002Fexport"," page for the full list.",[686,1133,1134,1147],{},[689,1135,1136],{},[692,1137,1138,1141,1144],{},[695,1139,1140],{},"Function",[695,1142,1143],{},"Returns",[695,1145,1146],{},"Use Case",[702,1148,1149,1164,1179,1194,1208],{},[692,1150,1151,1156,1161],{},[707,1152,1153],{},[356,1154,1155],{},"generateDocument(opts)",[707,1157,1158],{},[356,1159,1160],{},"Buffer",[707,1162,1163],{},"Node.js file I\u002FO",[692,1165,1166,1171,1176],{},[707,1167,1168],{},[356,1169,1170],{},"generateDocument(opts, { type: \"blob\" })",[707,1172,1173],{},[356,1174,1175],{},"Blob",[707,1177,1178],{},"Browser downloads",[692,1180,1181,1186,1191],{},[707,1182,1183],{},[356,1184,1185],{},"generateDocument(opts, { type: \"base64\" })",[707,1187,1188],{},[356,1189,1190],{},"string",[707,1192,1193],{},"Data URLs, API payloads",[692,1195,1196,1201,1205],{},[707,1197,1198],{},[356,1199,1200],{},"generateDocument(opts, { type: \"string\" })",[707,1202,1203],{},[356,1204,1190],{},[707,1206,1207],{},"Debugging, inspection",[692,1209,1210,1215,1220],{},[707,1211,1212],{},[356,1213,1214],{},"generateDocumentStream(opts)",[707,1216,1217],{},[356,1218,1219],{},"ReadableStream\u003CUint8Array>",[707,1221,1222],{},"Streaming large files",[1224,1225,1226],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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}",{"title":354,"searchDepth":439,"depth":439,"links":1228},[1229,1230,1231,1232,1233],{"id":343,"depth":439,"text":15},{"id":418,"depth":439,"text":102},{"id":683,"depth":439,"text":684},{"id":948,"depth":439,"text":172},{"id":1119,"depth":439,"text":1120},"Generate, parse, and patch .docx documents with a declarative TypeScript API","md",null,{},{"title":98,"description":1234},"IA9W3Uj3G9W1-8CfIVwDuOaMz5_qZ61KN8TMFBsRaYI",[1241,1243],{"title":88,"path":89,"stem":90,"description":1242,"children":-1},"Core TypeScript types for XML parsing and serialization",{"title":102,"path":103,"stem":104,"description":1244,"children":-1},"Create your first .docx document in 5 minutes with @office-open\u002Fdocx",1787501491292]