[{"data":1,"prerenderedAt":726},["ShallowReactive",2],{"navigation_docs_en":3,"-en-getting-started-installation":233,"-en-getting-started-installation-surround":721},[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],{"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",{"id":234,"title":15,"body":235,"description":715,"extension":716,"links":717,"meta":718,"navigation":295,"path":16,"seo":719,"stem":17,"__hash__":720},"docs_en\u002Fen\u002F01.getting-started\u002F02.installation.md",{"type":236,"value":237,"toc":709},"minimark",[238,243,247,353,366,370,373,472,475,479,486,685,689,705],[239,240,242],"h2",{"id":241},"package-manager","Package Manager",[244,245,246],"p",{},"Install the package for the document type you need:",[248,249,254],"pre",{"className":250,"code":251,"language":252,"meta":253,"style":253},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# pnpm\npnpm add @office-open\u002Fdocx\npnpm add @office-open\u002Fpptx\n\n# npm\nnpm install @office-open\u002Fdocx\nnpm install @office-open\u002Fpptx\n\n# yarn\nyarn add @office-open\u002Fdocx\nyarn add @office-open\u002Fpptx\n","bash","",[255,256,257,266,280,290,297,303,314,323,328,334,344],"code",{"__ignoreMap":253},[258,259,262],"span",{"class":260,"line":261},"line",1,[258,263,265],{"class":264},"sHwdD","# pnpm\n",[258,267,269,273,277],{"class":260,"line":268},2,[258,270,272],{"class":271},"sBMFI","pnpm",[258,274,276],{"class":275},"sfazB"," add",[258,278,279],{"class":275}," @office-open\u002Fdocx\n",[258,281,283,285,287],{"class":260,"line":282},3,[258,284,272],{"class":271},[258,286,276],{"class":275},[258,288,289],{"class":275}," @office-open\u002Fpptx\n",[258,291,293],{"class":260,"line":292},4,[258,294,296],{"emptyLinePlaceholder":295},true,"\n",[258,298,300],{"class":260,"line":299},5,[258,301,302],{"class":264},"# npm\n",[258,304,306,309,312],{"class":260,"line":305},6,[258,307,308],{"class":271},"npm",[258,310,311],{"class":275}," install",[258,313,279],{"class":275},[258,315,317,319,321],{"class":260,"line":316},7,[258,318,308],{"class":271},[258,320,311],{"class":275},[258,322,289],{"class":275},[258,324,326],{"class":260,"line":325},8,[258,327,296],{"emptyLinePlaceholder":295},[258,329,331],{"class":260,"line":330},9,[258,332,333],{"class":264},"# yarn\n",[258,335,337,340,342],{"class":260,"line":336},10,[258,338,339],{"class":271},"yarn",[258,341,276],{"class":275},[258,343,279],{"class":275},[258,345,347,349,351],{"class":260,"line":346},11,[258,348,339],{"class":271},[258,350,276],{"class":275},[258,352,289],{"class":275},[244,354,355,356,359,360,362,363,365],{},"There is no single ",[255,357,358],{},"office-open"," package — install only the specific package(s) you need. Shared dependencies (",[255,361,30],{},", ",[255,364,68],{},") are pulled in automatically.",[239,367,369],{"id":368},"browser","Browser",[244,371,372],{},"For browser usage, import directly from a CDN that supports ESM:",[248,374,378],{"className":375,"code":376,"language":377,"meta":253,"style":253},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript type=\"module\">\n    import { Document, Packer, Paragraph, TextRun } from \"https:\u002F\u002Fesm.sh\u002F@office-open\u002Fdocx\";\n\n    \u002F\u002F ... create and export your document\n\u003C\u002Fscript>\n","html",[255,379,380,408,454,458,463],{"__ignoreMap":253},[258,381,382,386,390,394,397,400,403,405],{"class":260,"line":261},[258,383,385],{"class":384},"sMK4o","\u003C",[258,387,389],{"class":388},"swJcz","script",[258,391,393],{"class":392},"spNyl"," type",[258,395,396],{"class":384},"=",[258,398,399],{"class":384},"\"",[258,401,402],{"class":275},"module",[258,404,399],{"class":384},[258,406,407],{"class":384},">\n",[258,409,410,414,417,421,424,427,429,432,434,437,440,443,446,449,451],{"class":260,"line":268},[258,411,413],{"class":412},"s7zQu","    import",[258,415,416],{"class":384}," {",[258,418,420],{"class":419},"sTEyZ"," Document",[258,422,423],{"class":384},",",[258,425,426],{"class":419}," Packer",[258,428,423],{"class":384},[258,430,431],{"class":419}," Paragraph",[258,433,423],{"class":384},[258,435,436],{"class":419}," TextRun",[258,438,439],{"class":384}," }",[258,441,442],{"class":412}," from",[258,444,445],{"class":384}," \"",[258,447,448],{"class":275},"https:\u002F\u002Fesm.sh\u002F@office-open\u002Fdocx",[258,450,399],{"class":384},[258,452,453],{"class":384},";\n",[258,455,456],{"class":260,"line":282},[258,457,296],{"emptyLinePlaceholder":295},[258,459,460],{"class":260,"line":292},[258,461,462],{"class":264},"    \u002F\u002F ... create and export your document\n",[258,464,465,468,470],{"class":260,"line":299},[258,466,467],{"class":384},"\u003C\u002F",[258,469,389],{"class":388},[258,471,407],{"class":384},[244,473,474],{},"Or use a bundler (Vite, Webpack, etc.) — the packages ship as standard ESM modules and work out of the box.",[239,476,478],{"id":477},"typescript","TypeScript",[244,480,481,482,485],{},"All packages are written in TypeScript and ship with built-in type definitions. No additional ",[255,483,484],{},"@types"," packages are needed.",[248,487,491],{"className":488,"code":489,"language":490,"meta":253,"style":253},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Document, Packer, Paragraph, TextRun } from \"@office-open\u002Fdocx\";\n\n\u002F\u002F Full type support and autocomplete\nconst doc = new Document({\n    sections: [\n        {\n            children: [\n                new Paragraph({\n                    children: [new TextRun({ text: \"Hello, World!\", bold: true })],\n                }),\n            ],\n        },\n    ],\n});\n","ts",[255,492,493,526,530,535,557,568,573,582,593,644,654,661,667,675],{"__ignoreMap":253},[258,494,495,498,500,502,504,506,508,510,512,514,516,518,520,522,524],{"class":260,"line":261},[258,496,497],{"class":412},"import",[258,499,416],{"class":384},[258,501,420],{"class":419},[258,503,423],{"class":384},[258,505,426],{"class":419},[258,507,423],{"class":384},[258,509,431],{"class":419},[258,511,423],{"class":384},[258,513,436],{"class":419},[258,515,439],{"class":384},[258,517,442],{"class":412},[258,519,445],{"class":384},[258,521,98],{"class":275},[258,523,399],{"class":384},[258,525,453],{"class":384},[258,527,528],{"class":260,"line":268},[258,529,296],{"emptyLinePlaceholder":295},[258,531,532],{"class":260,"line":282},[258,533,534],{"class":264},"\u002F\u002F Full type support and autocomplete\n",[258,536,537,540,543,545,548,551,554],{"class":260,"line":292},[258,538,539],{"class":392},"const",[258,541,542],{"class":419}," doc ",[258,544,396],{"class":384},[258,546,547],{"class":384}," new",[258,549,420],{"class":550},"s2Zo4",[258,552,553],{"class":419},"(",[258,555,556],{"class":384},"{\n",[258,558,559,562,565],{"class":260,"line":299},[258,560,561],{"class":388},"    sections",[258,563,564],{"class":384},":",[258,566,567],{"class":419}," [\n",[258,569,570],{"class":260,"line":305},[258,571,572],{"class":384},"        {\n",[258,574,575,578,580],{"class":260,"line":316},[258,576,577],{"class":388},"            children",[258,579,564],{"class":384},[258,581,567],{"class":419},[258,583,584,587,589,591],{"class":260,"line":325},[258,585,586],{"class":384},"                new",[258,588,431],{"class":550},[258,590,553],{"class":419},[258,592,556],{"class":384},[258,594,595,598,600,603,606,608,610,613,616,618,620,623,625,627,630,632,636,638,641],{"class":260,"line":330},[258,596,597],{"class":388},"                    children",[258,599,564],{"class":384},[258,601,602],{"class":419}," [",[258,604,605],{"class":384},"new",[258,607,436],{"class":550},[258,609,553],{"class":419},[258,611,612],{"class":384},"{",[258,614,615],{"class":388}," text",[258,617,564],{"class":384},[258,619,445],{"class":384},[258,621,622],{"class":275},"Hello, World!",[258,624,399],{"class":384},[258,626,423],{"class":384},[258,628,629],{"class":388}," bold",[258,631,564],{"class":384},[258,633,635],{"class":634},"sfNiH"," true",[258,637,439],{"class":384},[258,639,640],{"class":419},")]",[258,642,643],{"class":384},",\n",[258,645,646,649,652],{"class":260,"line":336},[258,647,648],{"class":384},"                }",[258,650,651],{"class":419},")",[258,653,643],{"class":384},[258,655,656,659],{"class":260,"line":346},[258,657,658],{"class":419},"            ]",[258,660,643],{"class":384},[258,662,664],{"class":260,"line":663},12,[258,665,666],{"class":384},"        },\n",[258,668,670,673],{"class":260,"line":669},13,[258,671,672],{"class":419},"    ]",[258,674,643],{"class":384},[258,676,678,681,683],{"class":260,"line":677},14,[258,679,680],{"class":384},"}",[258,682,651],{"class":419},[258,684,453],{"class":384},[239,686,688],{"id":687},"requirements","Requirements",[690,691,692,700],"ul",{},[693,694,695,699],"li",{},[696,697,698],"strong",{},"Node.js"," >= 18",[693,701,702,704],{},[696,703,478],{}," >= 5.0 (optional, but recommended)",[706,707,708],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}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}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":253,"searchDepth":268,"depth":268,"links":710},[711,712,713,714],{"id":241,"depth":268,"text":242},{"id":368,"depth":268,"text":369},{"id":477,"depth":268,"text":478},{"id":687,"depth":268,"text":688},"How to install office-open packages","md",null,{},{"title":15,"description":715},"kz2Dcyv2ymXyBME6E8E2NX0QlWrINehokcCZxKt950k",[722,724],{"title":11,"path":12,"stem":13,"description":723,"children":-1},"Overview of the office-open project and its packages",{"title":19,"path":20,"stem":21,"description":725,"children":-1},"Use Office Open with AI agents via MCP, Skills, and LLMs.txt",1778857910633]