[{"data":1,"prerenderedAt":1418},["ShallowReactive",2],{"navigation_docs_en":3,"-en-getting-started-command-line-interface":335,"-en-getting-started-command-line-interface-surround":1413},[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":19,"body":337,"description":1406,"extension":1407,"links":1408,"meta":1409,"navigation":1410,"path":20,"seo":1411,"stem":21,"__hash__":1412},"docs_en\u002Fen\u002F01.getting-started\u002F03.command-line-interface.md",{"type":338,"value":339,"toc":1389},"minimark",[340,349,353,359,430,434,470,508,512,595,599,604,628,632,660,664,691,695,698,700,840,842,1103,1105,1288,1292,1295,1302,1306,1309,1366,1373,1385],[341,342,343,344,348],"p",{},"The ",[345,346,347],"code",{},"office-open"," package includes a CLI for generating documents from JSON files or JSON strings.",[350,351,15],"h2",{"id":352},"installation",[341,354,355,356,358],{},"The CLI is included with the ",[345,357,347],{}," package:",[360,361,362,387,402,416],"code-group",{},[363,364,370],"pre",{"className":365,"code":366,"filename":367,"language":368,"meta":369,"style":369},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add office-open\n","pnpm","bash","",[345,371,372],{"__ignoreMap":369},[373,374,377,380,384],"span",{"class":375,"line":376},"line",1,[373,378,367],{"class":379},"sBMFI",[373,381,383],{"class":382},"sfazB"," add",[373,385,386],{"class":382}," office-open\n",[363,388,391],{"className":365,"code":389,"filename":390,"language":368,"meta":369,"style":369},"npm install office-open\n","npm",[345,392,393],{"__ignoreMap":369},[373,394,395,397,400],{"class":375,"line":376},[373,396,390],{"class":379},[373,398,399],{"class":382}," install",[373,401,386],{"class":382},[363,403,406],{"className":365,"code":404,"filename":405,"language":368,"meta":369,"style":369},"yarn add office-open\n","yarn",[345,407,408],{"__ignoreMap":369},[373,409,410,412,414],{"class":375,"line":376},[373,411,405],{"class":379},[373,413,383],{"class":382},[373,415,386],{"class":382},[363,417,420],{"className":365,"code":418,"filename":419,"language":368,"meta":369,"style":369},"bun add office-open\n","bun",[345,421,422],{"__ignoreMap":369},[373,423,424,426,428],{"class":375,"line":376},[373,425,419],{"class":379},[373,427,383],{"class":382},[373,429,386],{"class":382},[350,431,433],{"id":432},"usage","Usage",[363,435,437],{"className":365,"code":436,"language":368,"meta":369,"style":369},"office-open \u003Ctype> \u003Cinput> [output]\n",[345,438,439],{"__ignoreMap":369},[373,440,441,443,447,450,454,457,459,462,465,467],{"class":375,"line":376},[373,442,347],{"class":379},[373,444,446],{"class":445},"sMK4o"," \u003C",[373,448,449],{"class":382},"typ",[373,451,453],{"class":452},"sTEyZ","e",[373,455,456],{"class":445},">",[373,458,446],{"class":445},[373,460,461],{"class":382},"inpu",[373,463,464],{"class":452},"t",[373,466,456],{"class":445},[373,468,469],{"class":452}," [output]\n",[471,472,473,492,498],"ul",{},[474,475,476,480,481,484,485,488,489],"li",{},[477,478,479],"strong",{},"type"," — Document type: ",[345,482,483],{},"docx",", ",[345,486,487],{},"pptx",", or ",[345,490,491],{},"xlsx",[474,493,494,497],{},[477,495,496],{},"input"," — JSON string or path to a JSON file",[474,499,500,503,504,507],{},[477,501,502],{},"output"," — Output file path (default: ",[345,505,506],{},"output.\u003Cext>",")",[350,509,511],{"id":510},"options","Options",[513,514,515,531],"table",{},[516,517,518],"thead",{},[519,520,521,525,528],"tr",{},[522,523,524],"th",{},"Flag",[522,526,527],{},"Alias",[522,529,530],{},"Description",[532,533,534,550,565,580],"tbody",{},[519,535,536,542,547],{},[537,538,539],"td",{},[345,540,541],{},"--input-file",[537,543,544],{},[345,545,546],{},"-i",[537,548,549],{},"Read JSON from file",[519,551,552,557,562],{},[537,553,554],{},[345,555,556],{},"--output-file",[537,558,559],{},[345,560,561],{},"-o",[537,563,564],{},"Output file path",[519,566,567,572,577],{},[537,568,569],{},[345,570,571],{},"--help",[537,573,574],{},[345,575,576],{},"-h",[537,578,579],{},"Show help",[519,581,582,587,592],{},[537,583,584],{},[345,585,586],{},"--version",[537,588,589],{},[345,590,591],{},"-v",[537,593,594],{},"Show version",[350,596,598],{"id":597},"examples","Examples",[600,601,603],"h3",{"id":602},"from-a-json-file","From a JSON file",[363,605,607],{"className":365,"code":606,"language":368,"meta":369,"style":369},"office-open docx input.json \"My Document.docx\"\n",[345,608,609],{"__ignoreMap":369},[373,610,611,613,616,619,622,625],{"class":375,"line":376},[373,612,347],{"class":379},[373,614,615],{"class":382}," docx",[373,617,618],{"class":382}," input.json",[373,620,621],{"class":445}," \"",[373,623,624],{"class":382},"My Document.docx",[373,626,627],{"class":445},"\"\n",[600,629,631],{"id":630},"using-flags","Using flags",[363,633,635],{"className":365,"code":634,"language":368,"meta":369,"style":369},"office-open pptx -i slides.json -o \"Presentation.pptx\"\n",[345,636,637],{"__ignoreMap":369},[373,638,639,641,644,647,650,653,655,658],{"class":375,"line":376},[373,640,347],{"class":379},[373,642,643],{"class":382}," pptx",[373,645,646],{"class":382}," -i",[373,648,649],{"class":382}," slides.json",[373,651,652],{"class":382}," -o",[373,654,621],{"class":445},[373,656,657],{"class":382},"Presentation.pptx",[373,659,627],{"class":445},[600,661,663],{"id":662},"inline-json","Inline JSON",[363,665,667],{"className":365,"code":666,"language":368,"meta":369,"style":369},"office-open docx '{\"sections\":[{\"children\":[{\"paragraph\":{\"children\":[\"Hello, World!\"]}}]}]}' \"output.docx\"\n",[345,668,669],{"__ignoreMap":369},[373,670,671,673,675,678,681,684,686,689],{"class":375,"line":376},[373,672,347],{"class":379},[373,674,615],{"class":382},[373,676,677],{"class":445}," '",[373,679,680],{"class":382},"{\"sections\":[{\"children\":[{\"paragraph\":{\"children\":[\"Hello, World!\"]}}]}]}",[373,682,683],{"class":445},"'",[373,685,621],{"class":445},[373,687,688],{"class":382},"output.docx",[373,690,627],{"class":445},[350,692,694],{"id":693},"json-format","JSON Format",[341,696,697],{},"Each document type has its own required structure. The CLI validates your input against the corresponding schema before generating.",[600,699,92],{"id":483},[701,702,703],"api-example",{"type":483},[363,704,709],{"className":705,"code":706,"filename":707,"language":708,"meta":369,"style":369},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"sections\": [\n    {\n      \"children\": [{ \"paragraph\": { \"children\": [{ \"text\": \"Hello, World!\", \"bold\": true }] } }]\n    }\n  ]\n}\n","JSON","json",[345,710,711,716,735,741,822,828,834],{"__ignoreMap":369},[373,712,713],{"class":375,"line":376},[373,714,715],{"class":445},"{\n",[373,717,719,722,726,729,732],{"class":375,"line":718},2,[373,720,721],{"class":445},"  \"",[373,723,725],{"class":724},"spNyl","sections",[373,727,728],{"class":445},"\"",[373,730,731],{"class":445},":",[373,733,734],{"class":445}," [\n",[373,736,738],{"class":375,"line":737},3,[373,739,740],{"class":445},"    {\n",[373,742,744,747,750,752,754,757,759,763,765,767,770,772,775,777,779,781,783,787,789,791,793,796,798,801,803,806,808,810,813,816,819],{"class":375,"line":743},4,[373,745,746],{"class":445},"      \"",[373,748,749],{"class":379},"children",[373,751,728],{"class":445},[373,753,731],{"class":445},[373,755,756],{"class":445}," [{",[373,758,621],{"class":445},[373,760,762],{"class":761},"sbssI","paragraph",[373,764,728],{"class":445},[373,766,731],{"class":445},[373,768,769],{"class":445}," {",[373,771,621],{"class":445},[373,773,749],{"class":774},"swJcz",[373,776,728],{"class":445},[373,778,731],{"class":445},[373,780,756],{"class":445},[373,782,621],{"class":445},[373,784,786],{"class":785},"su27w","text",[373,788,728],{"class":445},[373,790,731],{"class":445},[373,792,621],{"class":445},[373,794,795],{"class":382},"Hello, World!",[373,797,728],{"class":445},[373,799,800],{"class":445},",",[373,802,621],{"class":445},[373,804,805],{"class":785},"bold",[373,807,728],{"class":445},[373,809,731],{"class":445},[373,811,812],{"class":445}," true",[373,814,815],{"class":445}," }]",[373,817,818],{"class":445}," }",[373,820,821],{"class":445}," }]\n",[373,823,825],{"class":375,"line":824},5,[373,826,827],{"class":445},"    }\n",[373,829,831],{"class":375,"line":830},6,[373,832,833],{"class":445},"  ]\n",[373,835,837],{"class":375,"line":836},7,[373,838,839],{"class":445},"}\n",[600,841,176],{"id":487},[701,843,844],{"type":487},[363,845,847],{"className":705,"code":846,"filename":707,"language":708,"meta":369,"style":369},"{\n  \"title\": \"My Presentation\",\n  \"slides\": [\n    {\n      \"children\": [\n        {\n          \"shape\": {\n            \"x\": 100,\n            \"y\": 100,\n            \"width\": 760,\n            \"height\": 340,\n            \"textBody\": {\n              \"paragraphs\": [{ \"children\": [{ \"text\": \"Hello, World!\", \"size\": 32 }] }]\n            }\n          }\n        }\n      ]\n    }\n  ]\n}\n",[345,848,849,853,874,887,891,903,908,923,941,957,974,991,1005,1064,1070,1076,1082,1088,1093,1098],{"__ignoreMap":369},[373,850,851],{"class":375,"line":376},[373,852,715],{"class":445},[373,854,855,857,860,862,864,866,869,871],{"class":375,"line":718},[373,856,721],{"class":445},[373,858,859],{"class":724},"title",[373,861,728],{"class":445},[373,863,731],{"class":445},[373,865,621],{"class":445},[373,867,868],{"class":382},"My Presentation",[373,870,728],{"class":445},[373,872,873],{"class":445},",\n",[373,875,876,878,881,883,885],{"class":375,"line":737},[373,877,721],{"class":445},[373,879,880],{"class":724},"slides",[373,882,728],{"class":445},[373,884,731],{"class":445},[373,886,734],{"class":445},[373,888,889],{"class":375,"line":743},[373,890,740],{"class":445},[373,892,893,895,897,899,901],{"class":375,"line":824},[373,894,746],{"class":445},[373,896,749],{"class":379},[373,898,728],{"class":445},[373,900,731],{"class":445},[373,902,734],{"class":445},[373,904,905],{"class":375,"line":830},[373,906,907],{"class":445},"        {\n",[373,909,910,913,916,918,920],{"class":375,"line":836},[373,911,912],{"class":445},"          \"",[373,914,915],{"class":761},"shape",[373,917,728],{"class":445},[373,919,731],{"class":445},[373,921,922],{"class":445}," {\n",[373,924,926,929,932,934,936,939],{"class":375,"line":925},8,[373,927,928],{"class":445},"            \"",[373,930,931],{"class":774},"x",[373,933,728],{"class":445},[373,935,731],{"class":445},[373,937,938],{"class":761}," 100",[373,940,873],{"class":445},[373,942,944,946,949,951,953,955],{"class":375,"line":943},9,[373,945,928],{"class":445},[373,947,948],{"class":774},"y",[373,950,728],{"class":445},[373,952,731],{"class":445},[373,954,938],{"class":761},[373,956,873],{"class":445},[373,958,960,962,965,967,969,972],{"class":375,"line":959},10,[373,961,928],{"class":445},[373,963,964],{"class":774},"width",[373,966,728],{"class":445},[373,968,731],{"class":445},[373,970,971],{"class":761}," 760",[373,973,873],{"class":445},[373,975,977,979,982,984,986,989],{"class":375,"line":976},11,[373,978,928],{"class":445},[373,980,981],{"class":774},"height",[373,983,728],{"class":445},[373,985,731],{"class":445},[373,987,988],{"class":761}," 340",[373,990,873],{"class":445},[373,992,994,996,999,1001,1003],{"class":375,"line":993},12,[373,995,928],{"class":445},[373,997,998],{"class":774},"textBody",[373,1000,728],{"class":445},[373,1002,731],{"class":445},[373,1004,922],{"class":445},[373,1006,1008,1011,1014,1016,1018,1020,1022,1025,1027,1029,1031,1033,1036,1038,1040,1042,1044,1046,1048,1050,1053,1055,1057,1060,1062],{"class":375,"line":1007},13,[373,1009,1010],{"class":445},"              \"",[373,1012,1013],{"class":785},"paragraphs",[373,1015,728],{"class":445},[373,1017,731],{"class":445},[373,1019,756],{"class":445},[373,1021,621],{"class":445},[373,1023,749],{"class":1024},"s2Zo4",[373,1026,728],{"class":445},[373,1028,731],{"class":445},[373,1030,756],{"class":445},[373,1032,621],{"class":445},[373,1034,786],{"class":1035},"sfNiH",[373,1037,728],{"class":445},[373,1039,731],{"class":445},[373,1041,621],{"class":445},[373,1043,795],{"class":382},[373,1045,728],{"class":445},[373,1047,800],{"class":445},[373,1049,621],{"class":445},[373,1051,1052],{"class":1035},"size",[373,1054,728],{"class":445},[373,1056,731],{"class":445},[373,1058,1059],{"class":761}," 32",[373,1061,815],{"class":445},[373,1063,821],{"class":445},[373,1065,1067],{"class":375,"line":1066},14,[373,1068,1069],{"class":445},"            }\n",[373,1071,1073],{"class":375,"line":1072},15,[373,1074,1075],{"class":445},"          }\n",[373,1077,1079],{"class":375,"line":1078},16,[373,1080,1081],{"class":445},"        }\n",[373,1083,1085],{"class":375,"line":1084},17,[373,1086,1087],{"class":445},"      ]\n",[373,1089,1091],{"class":375,"line":1090},18,[373,1092,827],{"class":445},[373,1094,1096],{"class":375,"line":1095},19,[373,1097,833],{"class":445},[373,1099,1101],{"class":375,"line":1100},20,[373,1102,839],{"class":445},[600,1104,257],{"id":491},[701,1106,1107],{"type":491},[363,1108,1110],{"className":705,"code":1109,"filename":707,"language":708,"meta":369,"style":369},"{\n  \"worksheets\": [\n    {\n      \"name\": \"Sheet1\",\n      \"rows\": [\n        { \"cells\": [{ \"value\": \"Name\" }, { \"value\": \"Score\" }] },\n        { \"cells\": [{ \"value\": \"Alice\" }, { \"value\": 95 }] }\n      ]\n    }\n  ]\n}\n",[345,1111,1112,1116,1129,1133,1153,1166,1223,1272,1276,1280,1284],{"__ignoreMap":369},[373,1113,1114],{"class":375,"line":376},[373,1115,715],{"class":445},[373,1117,1118,1120,1123,1125,1127],{"class":375,"line":718},[373,1119,721],{"class":445},[373,1121,1122],{"class":724},"worksheets",[373,1124,728],{"class":445},[373,1126,731],{"class":445},[373,1128,734],{"class":445},[373,1130,1131],{"class":375,"line":737},[373,1132,740],{"class":445},[373,1134,1135,1137,1140,1142,1144,1146,1149,1151],{"class":375,"line":743},[373,1136,746],{"class":445},[373,1138,1139],{"class":379},"name",[373,1141,728],{"class":445},[373,1143,731],{"class":445},[373,1145,621],{"class":445},[373,1147,1148],{"class":382},"Sheet1",[373,1150,728],{"class":445},[373,1152,873],{"class":445},[373,1154,1155,1157,1160,1162,1164],{"class":375,"line":824},[373,1156,746],{"class":445},[373,1158,1159],{"class":379},"rows",[373,1161,728],{"class":445},[373,1163,731],{"class":445},[373,1165,734],{"class":445},[373,1167,1168,1171,1173,1176,1178,1180,1182,1184,1187,1189,1191,1193,1196,1198,1201,1203,1205,1207,1209,1211,1213,1216,1218,1220],{"class":375,"line":830},[373,1169,1170],{"class":445},"        {",[373,1172,621],{"class":445},[373,1174,1175],{"class":761},"cells",[373,1177,728],{"class":445},[373,1179,731],{"class":445},[373,1181,756],{"class":445},[373,1183,621],{"class":445},[373,1185,1186],{"class":774},"value",[373,1188,728],{"class":445},[373,1190,731],{"class":445},[373,1192,621],{"class":445},[373,1194,1195],{"class":382},"Name",[373,1197,728],{"class":445},[373,1199,1200],{"class":445}," },",[373,1202,769],{"class":445},[373,1204,621],{"class":445},[373,1206,1186],{"class":774},[373,1208,728],{"class":445},[373,1210,731],{"class":445},[373,1212,621],{"class":445},[373,1214,1215],{"class":382},"Score",[373,1217,728],{"class":445},[373,1219,815],{"class":445},[373,1221,1222],{"class":445}," },\n",[373,1224,1225,1227,1229,1231,1233,1235,1237,1239,1241,1243,1245,1247,1250,1252,1254,1256,1258,1260,1262,1264,1267,1269],{"class":375,"line":836},[373,1226,1170],{"class":445},[373,1228,621],{"class":445},[373,1230,1175],{"class":761},[373,1232,728],{"class":445},[373,1234,731],{"class":445},[373,1236,756],{"class":445},[373,1238,621],{"class":445},[373,1240,1186],{"class":774},[373,1242,728],{"class":445},[373,1244,731],{"class":445},[373,1246,621],{"class":445},[373,1248,1249],{"class":382},"Alice",[373,1251,728],{"class":445},[373,1253,1200],{"class":445},[373,1255,769],{"class":445},[373,1257,621],{"class":445},[373,1259,1186],{"class":774},[373,1261,728],{"class":445},[373,1263,731],{"class":445},[373,1265,1266],{"class":761}," 95",[373,1268,815],{"class":445},[373,1270,1271],{"class":445}," }\n",[373,1273,1274],{"class":375,"line":925},[373,1275,1087],{"class":445},[373,1277,1278],{"class":375,"line":943},[373,1279,827],{"class":445},[373,1281,1282],{"class":375,"line":959},[373,1283,833],{"class":445},[373,1285,1286],{"class":375,"line":976},[373,1287,839],{"class":445},[350,1289,1291],{"id":1290},"validation","Validation",[341,1293,1294],{},"The CLI validates your JSON input before generating. If the input is invalid, you'll get a specific error message with the path and issue:",[363,1296,1300],{"className":1297,"code":1299,"language":786},[1298],"language-text","Error: Invalid docx options: at \"sections\": must be array\n",[345,1301,1299],{"__ignoreMap":369},[350,1303,1305],{"id":1304},"schema-inspection","Schema Inspection",[341,1307,1308],{},"The CLI can also consult the JSON Schemas — useful for checking exact field names, enum values, or unit constraints while authoring JSON by hand or through an AI agent:",[363,1310,1312],{"className":365,"code":1311,"language":368,"meta":369,"style":369},"office-open schema index docx                              # indexed lookup entries by domain\noffice-open schema index docx --all                        # every definition name\noffice-open schema slice docx ParagraphOptions RunOptions  # sub-schema for those types\n",[345,1313,1314,1330,1346],{"__ignoreMap":369},[373,1315,1316,1318,1321,1324,1326],{"class":375,"line":376},[373,1317,347],{"class":379},[373,1319,1320],{"class":382}," schema",[373,1322,1323],{"class":382}," index",[373,1325,615],{"class":382},[373,1327,1329],{"class":1328},"sHwdD","                              # indexed lookup entries by domain\n",[373,1331,1332,1334,1336,1338,1340,1343],{"class":375,"line":718},[373,1333,347],{"class":379},[373,1335,1320],{"class":382},[373,1337,1323],{"class":382},[373,1339,615],{"class":382},[373,1341,1342],{"class":382}," --all",[373,1344,1345],{"class":1328},"                        # every definition name\n",[373,1347,1348,1350,1352,1355,1357,1360,1363],{"class":375,"line":737},[373,1349,347],{"class":379},[373,1351,1320],{"class":382},[373,1353,1354],{"class":382}," slice",[373,1356,615],{"class":382},[373,1358,1359],{"class":382}," ParagraphOptions",[373,1361,1362],{"class":382}," RunOptions",[373,1364,1365],{"class":1328},"  # sub-schema for those types\n",[341,1367,1368,1369,1372],{},"A slice carries the full dependency closure of the requested types; other cataloged domains stay as expandable stubs. Generic definition names need shell quotes: ",[345,1370,1371],{},"\"HeaderFooterGroup\u003CHeaderFooterReference>\"",".",[341,1374,1375,1376,484,1379,1381,1382,1384],{},"For full schema details, refer to the ",[1377,1378,92],"a",{"href":99},[1377,1380,176],{"href":183},", and ",[1377,1383,257],{"href":264}," documentation.",[1386,1387,1388],"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 .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 .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 .su27w, html code.shiki .su27w{--shiki-light:#916B53;--shiki-default:#916B53;--shiki-dark:#916B53}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}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}",{"title":369,"searchDepth":718,"depth":718,"links":1390},[1391,1392,1393,1394,1399,1404,1405],{"id":352,"depth":718,"text":15},{"id":432,"depth":718,"text":433},{"id":510,"depth":718,"text":511},{"id":597,"depth":718,"text":598,"children":1395},[1396,1397,1398],{"id":602,"depth":737,"text":603},{"id":630,"depth":737,"text":631},{"id":662,"depth":737,"text":663},{"id":693,"depth":718,"text":694,"children":1400},[1401,1402,1403],{"id":483,"depth":737,"text":92},{"id":487,"depth":737,"text":176},{"id":491,"depth":737,"text":257},{"id":1290,"depth":718,"text":1291},{"id":1304,"depth":718,"text":1305},"Generate Office files from the command line using JSON","md",null,{},true,{"title":19,"description":1406},"HXw8YuQu9wC4uBQU_mqcUm57Z49R31bgReAYOJBddFQ",[1414,1416],{"title":15,"path":16,"stem":17,"description":1415,"children":-1},"How to install office-open packages",{"title":23,"path":24,"stem":25,"description":1417,"children":-1},"Use AI SDK tools to generate Office documents from AI agents",1787501500929]