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