[{"data":1,"prerenderedAt":790},["ShallowReactive",2],{"navigation_docs_en":3,"-en-docx-overview":237,"-en-docx-overview-surround":785},[4,23,61,91,163],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"Getting Started","i-lucide-rocket","\u002Fen\u002Fgetting-started","en\u002F01.getting-started",[10,14,18],{"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},"AI Integration","\u002Fen\u002Fgetting-started\u002Fai-integration","en\u002F01.getting-started\u002F03.ai-integration",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"CORE","i-lucide-box","\u002Fen\u002Fcore","en\u002F02.core",[29,33,37,41,45,49,53,57],{"title":30,"path":31,"stem":32},"@office-open\u002Fcore","\u002Fen\u002Fcore\u002Foverview","en\u002F02.core\u002F01.overview",{"title":34,"path":35,"stem":36},"XML Components","\u002Fen\u002Fcore\u002Fxml-components","en\u002F02.core\u002F02.xml-components",{"title":38,"path":39,"stem":40},"Values and Validation","\u002Fen\u002Fcore\u002Fvalues","en\u002F02.core\u002F03.values",{"title":42,"path":43,"stem":44},"Unit Converters","\u002Fen\u002Fcore\u002Fconverters","en\u002F02.core\u002F04.converters",{"title":46,"path":47,"stem":48},"Formatter","\u002Fen\u002Fcore\u002Fformatter","en\u002F02.core\u002F05.formatter",{"title":50,"path":51,"stem":52},"Parser","\u002Fen\u002Fcore\u002Fparser","en\u002F02.core\u002F06.parser",{"title":54,"path":55,"stem":56},"Archive","\u002Fen\u002Fcore\u002Farchive","en\u002F02.core\u002F07.archive",{"title":58,"path":59,"stem":60},"Charts","\u002Fen\u002Fcore\u002Fcharts","en\u002F02.core\u002F08.charts",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":22},"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":22},"DOCX","i-lucide-file-text","\u002Fen\u002Fdocx","en\u002F04.docx",[97,101,105,109,113,117,120,124,128,132,136,140,144,148,152,156,160],{"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":58,"path":118,"stem":119},"\u002Fen\u002Fdocx\u002Fcharts","en\u002F04.docx\u002F06.charts",{"title":121,"path":122,"stem":123},"SmartArt","\u002Fen\u002Fdocx\u002Fsmartart","en\u002F04.docx\u002F07.smartart",{"title":125,"path":126,"stem":127},"Media","\u002Fen\u002Fdocx\u002Fmedia","en\u002F04.docx\u002F08.media",{"title":129,"path":130,"stem":131},"Links","\u002Fen\u002Fdocx\u002Flinks","en\u002F04.docx\u002F09.links",{"title":133,"path":134,"stem":135},"Headers and Footers","\u002Fen\u002Fdocx\u002Fheaders-and-footers","en\u002F04.docx\u002F10.headers-and-footers",{"title":137,"path":138,"stem":139},"Equations and Symbols","\u002Fen\u002Fdocx\u002Fequations-and-symbols","en\u002F04.docx\u002F11.equations-and-symbols",{"title":141,"path":142,"stem":143},"Styles and Themes","\u002Fen\u002Fdocx\u002Fstyles-and-themes","en\u002F04.docx\u002F12.styles-and-themes",{"title":145,"path":146,"stem":147},"Page Layout","\u002Fen\u002Fdocx\u002Fpage-layout","en\u002F04.docx\u002F13.page-layout",{"title":149,"path":150,"stem":151},"References","\u002Fen\u002Fdocx\u002Freferences","en\u002F04.docx\u002F14.references",{"title":153,"path":154,"stem":155},"Comments and Revisions","\u002Fen\u002Fdocx\u002Fcomments-and-revisions","en\u002F04.docx\u002F15.comments-and-revisions",{"title":157,"path":158,"stem":159},"Export","\u002Fen\u002Fdocx\u002Fexport","en\u002F04.docx\u002F16.export",{"title":72,"path":161,"stem":162},"\u002Fen\u002Fdocx\u002Fparsing","en\u002F04.docx\u002F17.parsing",{"title":164,"icon":165,"path":166,"stem":167,"children":168,"page":22},"PPTX","i-lucide-presentation","\u002Fen\u002Fpptx","en\u002F05.pptx",[169,173,176,180,183,186,189,192,195,198,201,204,208,211,215,219,223,227,230,233],{"title":170,"path":171,"stem":172},"@office-open\u002Fpptx","\u002Fen\u002Fpptx\u002Foverview","en\u002F05.pptx\u002F01.overview",{"title":102,"path":174,"stem":175},"\u002Fen\u002Fpptx\u002Fquickstart","en\u002F05.pptx\u002F02.quickstart",{"title":177,"path":178,"stem":179},"Shapes and Text","\u002Fen\u002Fpptx\u002Fshapes-and-text","en\u002F05.pptx\u002F03.shapes-and-text",{"title":110,"path":181,"stem":182},"\u002Fen\u002Fpptx\u002Ftables","en\u002F05.pptx\u002F04.tables",{"title":114,"path":184,"stem":185},"\u002Fen\u002Fpptx\u002Fimages","en\u002F05.pptx\u002F05.images",{"title":58,"path":187,"stem":188},"\u002Fen\u002Fpptx\u002Fcharts","en\u002F05.pptx\u002F06.charts",{"title":121,"path":190,"stem":191},"\u002Fen\u002Fpptx\u002Fsmartart","en\u002F05.pptx\u002F07.smartart",{"title":125,"path":193,"stem":194},"\u002Fen\u002Fpptx\u002Fmedia","en\u002F05.pptx\u002F08.media",{"title":129,"path":196,"stem":197},"\u002Fen\u002Fpptx\u002Flinks","en\u002F05.pptx\u002F09.links",{"title":133,"path":199,"stem":200},"\u002Fen\u002Fpptx\u002Fheaders-and-footers","en\u002F05.pptx\u002F10.headers-and-footers",{"title":137,"path":202,"stem":203},"\u002Fen\u002Fpptx\u002Fequations-and-symbols","en\u002F05.pptx\u002F11.equations-and-symbols",{"title":205,"path":206,"stem":207},"Lines and Connectors","\u002Fen\u002Fpptx\u002Flines-and-connectors","en\u002F05.pptx\u002F12.lines-and-connectors",{"title":141,"path":209,"stem":210},"\u002Fen\u002Fpptx\u002Fstyles-and-themes","en\u002F05.pptx\u002F13.styles-and-themes",{"title":212,"path":213,"stem":214},"Effects and Fills","\u002Fen\u002Fpptx\u002Feffects-and-fills","en\u002F05.pptx\u002F14.effects-and-fills",{"title":216,"path":217,"stem":218},"Slide Layout","\u002Fen\u002Fpptx\u002Fslide-layout","en\u002F05.pptx\u002F15.slide-layout",{"title":220,"path":221,"stem":222},"Transitions","\u002Fen\u002Fpptx\u002Ftransitions","en\u002F05.pptx\u002F16.transitions",{"title":224,"path":225,"stem":226},"Animations","\u002Fen\u002Fpptx\u002Fanimations","en\u002F05.pptx\u002F17.animations",{"title":157,"path":228,"stem":229},"\u002Fen\u002Fpptx\u002Fexport","en\u002F05.pptx\u002F18.export",{"title":72,"path":231,"stem":232},"\u002Fen\u002Fpptx\u002Fparsing","en\u002F05.pptx\u002F19.parsing",{"title":234,"path":235,"stem":236},"Comments","\u002Fen\u002Fpptx\u002Fcomments","en\u002F05.pptx\u002F20.comments",{"id":238,"title":98,"body":239,"description":779,"extension":780,"links":781,"meta":782,"navigation":334,"path":99,"seo":783,"stem":100,"__hash__":784},"docs_en\u002Fen\u002F04.docx\u002F01.overview.md",{"type":240,"value":241,"toc":773},"minimark",[242,246,272,275,507,511,674,678,769],[243,244,15],"h2",{"id":245},"installation",[247,248,253],"pre",{"className":249,"code":250,"language":251,"meta":252,"style":252},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add @office-open\u002Fdocx\n","bash","",[254,255,256],"code",{"__ignoreMap":252},[257,258,261,265,269],"span",{"class":259,"line":260},"line",1,[257,262,264],{"class":263},"sBMFI","pnpm",[257,266,268],{"class":267},"sfazB"," add",[257,270,271],{"class":267}," @office-open\u002Fdocx\n",[243,273,102],{"id":274},"quick-start",[247,276,280],{"className":277,"code":278,"language":279,"meta":252,"style":252},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Document, Packer, Paragraph, TextRun } from \"@office-open\u002Fdocx\";\n\nconst doc = new Document({\n    sections: [\n        {\n            children: [\n                new Paragraph({\n                    children: [new TextRun(\"Hello World\")],\n                }),\n            ],\n        },\n    ],\n});\n\nconst buffer = await Packer.toBuffer(doc);\n","ts",[254,281,282,329,336,361,374,380,390,402,433,444,452,458,466,476,481],{"__ignoreMap":252},[257,283,284,288,292,296,299,302,304,307,309,312,315,318,321,323,326],{"class":259,"line":260},[257,285,287],{"class":286},"s7zQu","import",[257,289,291],{"class":290},"sMK4o"," {",[257,293,295],{"class":294},"sTEyZ"," Document",[257,297,298],{"class":290},",",[257,300,301],{"class":294}," Packer",[257,303,298],{"class":290},[257,305,306],{"class":294}," Paragraph",[257,308,298],{"class":290},[257,310,311],{"class":294}," TextRun",[257,313,314],{"class":290}," }",[257,316,317],{"class":286}," from",[257,319,320],{"class":290}," \"",[257,322,98],{"class":267},[257,324,325],{"class":290},"\"",[257,327,328],{"class":290},";\n",[257,330,332],{"class":259,"line":331},2,[257,333,335],{"emptyLinePlaceholder":334},true,"\n",[257,337,339,343,346,349,352,355,358],{"class":259,"line":338},3,[257,340,342],{"class":341},"spNyl","const",[257,344,345],{"class":294}," doc ",[257,347,348],{"class":290},"=",[257,350,351],{"class":290}," new",[257,353,295],{"class":354},"s2Zo4",[257,356,357],{"class":294},"(",[257,359,360],{"class":290},"{\n",[257,362,364,368,371],{"class":259,"line":363},4,[257,365,367],{"class":366},"swJcz","    sections",[257,369,370],{"class":290},":",[257,372,373],{"class":294}," [\n",[257,375,377],{"class":259,"line":376},5,[257,378,379],{"class":290},"        {\n",[257,381,383,386,388],{"class":259,"line":382},6,[257,384,385],{"class":366},"            children",[257,387,370],{"class":290},[257,389,373],{"class":294},[257,391,393,396,398,400],{"class":259,"line":392},7,[257,394,395],{"class":290},"                new",[257,397,306],{"class":354},[257,399,357],{"class":294},[257,401,360],{"class":290},[257,403,405,408,410,413,416,418,420,422,425,427,430],{"class":259,"line":404},8,[257,406,407],{"class":366},"                    children",[257,409,370],{"class":290},[257,411,412],{"class":294}," [",[257,414,415],{"class":290},"new",[257,417,311],{"class":354},[257,419,357],{"class":294},[257,421,325],{"class":290},[257,423,424],{"class":267},"Hello World",[257,426,325],{"class":290},[257,428,429],{"class":294},")]",[257,431,432],{"class":290},",\n",[257,434,436,439,442],{"class":259,"line":435},9,[257,437,438],{"class":290},"                }",[257,440,441],{"class":294},")",[257,443,432],{"class":290},[257,445,447,450],{"class":259,"line":446},10,[257,448,449],{"class":294},"            ]",[257,451,432],{"class":290},[257,453,455],{"class":259,"line":454},11,[257,456,457],{"class":290},"        },\n",[257,459,461,464],{"class":259,"line":460},12,[257,462,463],{"class":294},"    ]",[257,465,432],{"class":290},[257,467,469,472,474],{"class":259,"line":468},13,[257,470,471],{"class":290},"}",[257,473,441],{"class":294},[257,475,328],{"class":290},[257,477,479],{"class":259,"line":478},14,[257,480,335],{"emptyLinePlaceholder":334},[257,482,484,486,489,491,494,496,499,502,505],{"class":259,"line":483},15,[257,485,342],{"class":341},[257,487,488],{"class":294}," buffer ",[257,490,348],{"class":290},[257,492,493],{"class":286}," await",[257,495,301],{"class":294},[257,497,498],{"class":290},".",[257,500,501],{"class":354},"toBuffer",[257,503,504],{"class":294},"(doc)",[257,506,328],{"class":290},[243,508,510],{"id":509},"main-components","Main Components",[512,513,514,527],"table",{},[515,516,517],"thead",{},[518,519,520,524],"tr",{},[521,522,523],"th",{},"Component",[521,525,526],{},"Description",[528,529,530,541,551,561,578,588,598,608,621,631,641,651,664],"tbody",{},[518,531,532,538],{},[533,534,535],"td",{},[254,536,537],{},"Document",[533,539,540],{},"Root document container with sections and properties",[518,542,543,548],{},[533,544,545],{},[254,546,547],{},"Paragraph",[533,549,550],{},"Text paragraph with formatting, alignment, and spacing",[518,552,553,558],{},[533,554,555],{},[254,556,557],{},"TextRun",[533,559,560],{},"Inline text with font, size, color, and style",[518,562,563,575],{},[533,564,565,568,569,568,572],{},[254,566,567],{},"Table",", ",[254,570,571],{},"TableRow",[254,573,574],{},"TableCell",[533,576,577],{},"Structured tables with merged cells and borders",[518,579,580,585],{},[533,581,582],{},[254,583,584],{},"ImageRun",[533,586,587],{},"Embedded images with transformation and positioning",[518,589,590,595],{},[533,591,592],{},[254,593,594],{},"ChartRun",[533,596,597],{},"Bar, line, pie, area, and scatter charts",[518,599,600,605],{},[533,601,602],{},[254,603,604],{},"SmartArtRun",[533,606,607],{},"Predefined SmartArt diagrams",[518,609,610,618],{},[533,611,612,568,615],{},[254,613,614],{},"Header",[254,616,617],{},"Footer",[533,619,620],{},"Section headers and footers",[518,622,623,628],{},[533,624,625],{},[254,626,627],{},"FootnoteReferenceRun",[533,629,630],{},"Footnotes and endnotes",[518,632,633,638],{},[533,634,635],{},[254,636,637],{},"TableOfContents",[533,639,640],{},"Auto-generated table of contents",[518,642,643,648],{},[533,644,645],{},[254,646,647],{},"Bookmark",[533,649,650],{},"Internal bookmarks and cross-references",[518,652,653,661],{},[533,654,655,568,658],{},[254,656,657],{},"Math",[254,659,660],{},"MathRun",[533,662,663],{},"Mathematical equations",[518,665,666,671],{},[533,667,668],{},[254,669,670],{},"Styles",[533,672,673],{},"Declarative style definitions",[243,675,677],{"id":676},"export-formats","Export Formats",[512,679,680,693],{},[515,681,682],{},[518,683,684,687,690],{},[521,685,686],{},"Method",[521,688,689],{},"Returns",[521,691,692],{},"Use Case",[528,694,695,710,725,740,754],{},[518,696,697,702,707],{},[533,698,699],{},[254,700,701],{},"Packer.toBuffer(doc)",[533,703,704],{},[254,705,706],{},"Uint8Array",[533,708,709],{},"Node.js file I\u002FO",[518,711,712,717,722],{},[533,713,714],{},[254,715,716],{},"Packer.toBlob(doc)",[533,718,719],{},[254,720,721],{},"Blob",[533,723,724],{},"Browser downloads",[518,726,727,732,737],{},[533,728,729],{},[254,730,731],{},"Packer.toBase64String(doc)",[533,733,734],{},[254,735,736],{},"string",[533,738,739],{},"Data URLs, API payloads",[518,741,742,747,751],{},[533,743,744],{},[254,745,746],{},"Packer.toString(doc)",[533,748,749],{},[254,750,736],{},[533,752,753],{},"Debugging, inspection",[518,755,756,761,766],{},[533,757,758],{},[254,759,760],{},"Packer.toStream(doc)",[533,762,763],{},[254,764,765],{},"ReadableStream",[533,767,768],{},"Streaming large files",[770,771,772],"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 .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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}",{"title":252,"searchDepth":331,"depth":331,"links":774},[775,776,777,778],{"id":245,"depth":331,"text":15},{"id":274,"depth":331,"text":102},{"id":509,"depth":331,"text":510},{"id":676,"depth":331,"text":677},"Generate .docx documents with a declarative TypeScript API","md",null,{},{"title":98,"description":779},"f7KZ1W1zKt5gZ-Qd9VVo9VMT4nvy_mFEqqCcuQM-o5s",[786,788],{"title":88,"path":89,"stem":90,"description":787,"children":-1},"Core TypeScript types for XML parsing and serialization",{"title":102,"path":103,"stem":104,"description":789,"children":-1},"Create your first .docx document in 5 minutes with @office-open\u002Fdocx",1778862988637]