[{"data":1,"prerenderedAt":1086},["ShallowReactive",2],{"navigation_docs_zh":3,"-zh-docx-parsing":237,"-zh-docx-parsing-surround":1081},[4,23,61,91,163],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"快速开始","i-lucide-rocket","\u002Fzh\u002Fgetting-started","zh\u002F01.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"简介","\u002Fzh\u002Fgetting-started\u002Fintroduction","zh\u002F01.getting-started\u002F01.introduction",{"title":15,"path":16,"stem":17},"安装","\u002Fzh\u002Fgetting-started\u002Finstallation","zh\u002F01.getting-started\u002F02.installation",{"title":19,"path":20,"stem":21},"AI 集成","\u002Fzh\u002Fgetting-started\u002Fai-integration","zh\u002F01.getting-started\u002F03.ai-integration",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"CORE","i-lucide-box","\u002Fzh\u002Fcore","zh\u002F02.core",[29,33,37,41,45,49,53,57],{"title":30,"path":31,"stem":32},"@office-open\u002Fcore","\u002Fzh\u002Fcore\u002Foverview","zh\u002F02.core\u002F01.overview",{"title":34,"path":35,"stem":36},"XML 组件","\u002Fzh\u002Fcore\u002Fxml-components","zh\u002F02.core\u002F02.xml-components",{"title":38,"path":39,"stem":40},"值与验证","\u002Fzh\u002Fcore\u002Fvalues","zh\u002F02.core\u002F03.values",{"title":42,"path":43,"stem":44},"单位转换器","\u002Fzh\u002Fcore\u002Fconverters","zh\u002F02.core\u002F04.converters",{"title":46,"path":47,"stem":48},"Formatter","\u002Fzh\u002Fcore\u002Fformatter","zh\u002F02.core\u002F05.formatter",{"title":50,"path":51,"stem":52},"Parser","\u002Fzh\u002Fcore\u002Fparser","zh\u002F02.core\u002F06.parser",{"title":54,"path":55,"stem":56},"Archive","\u002Fzh\u002Fcore\u002Farchive","zh\u002F02.core\u002F07.archive",{"title":58,"path":59,"stem":60},"Charts","\u002Fzh\u002Fcore\u002Fcharts","zh\u002F02.core\u002F08.charts",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":22},"XML","i-lucide-code-xml","\u002Fzh\u002Fxml","zh\u002F03.xml",[67,71,75,79,83,87],{"title":68,"path":69,"stem":70},"@office-open\u002Fxml","\u002Fzh\u002Fxml\u002Foverview","zh\u002F03.xml\u002F01.overview",{"title":72,"path":73,"stem":74},"解析","\u002Fzh\u002Fxml\u002Fparsing","zh\u002F03.xml\u002F02.parsing",{"title":76,"path":77,"stem":78},"序列化","\u002Fzh\u002Fxml\u002Fserialization","zh\u002F03.xml\u002F03.serialization",{"title":80,"path":81,"stem":82},"查询工具","\u002Fzh\u002Fxml\u002Fquery-utilities","zh\u002F03.xml\u002F04.query-utilities",{"title":84,"path":85,"stem":86},"XML 转义","\u002Fzh\u002Fxml\u002Fescape","zh\u002F03.xml\u002F05.escape",{"title":88,"path":89,"stem":90},"类型参考","\u002Fzh\u002Fxml\u002Ftypes","zh\u002F03.xml\u002F06.types",{"title":92,"icon":93,"path":94,"stem":95,"children":96,"page":22},"DOCX","i-lucide-file-text","\u002Fzh\u002Fdocx","zh\u002F04.docx",[97,101,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160],{"title":98,"path":99,"stem":100},"@office-open\u002Fdocx","\u002Fzh\u002Fdocx\u002Foverview","zh\u002F04.docx\u002F01.overview",{"title":5,"path":102,"stem":103},"\u002Fzh\u002Fdocx\u002Fquickstart","zh\u002F04.docx\u002F02.quickstart",{"title":105,"path":106,"stem":107},"文本与段落","\u002Fzh\u002Fdocx\u002Ftext-and-paragraphs","zh\u002F04.docx\u002F03.text-and-paragraphs",{"title":109,"path":110,"stem":111},"表格","\u002Fzh\u002Fdocx\u002Ftables","zh\u002F04.docx\u002F04.tables",{"title":113,"path":114,"stem":115},"图片","\u002Fzh\u002Fdocx\u002Fimages","zh\u002F04.docx\u002F05.images",{"title":117,"path":118,"stem":119},"图表","\u002Fzh\u002Fdocx\u002Fcharts","zh\u002F04.docx\u002F06.charts",{"title":121,"path":122,"stem":123},"SmartArt","\u002Fzh\u002Fdocx\u002Fsmartart","zh\u002F04.docx\u002F07.smartart",{"title":125,"path":126,"stem":127},"媒体","\u002Fzh\u002Fdocx\u002Fmedia","zh\u002F04.docx\u002F08.media",{"title":129,"path":130,"stem":131},"链接","\u002Fzh\u002Fdocx\u002Flinks","zh\u002F04.docx\u002F09.links",{"title":133,"path":134,"stem":135},"页眉与页脚","\u002Fzh\u002Fdocx\u002Fheaders-and-footers","zh\u002F04.docx\u002F10.headers-and-footers",{"title":137,"path":138,"stem":139},"公式与符号","\u002Fzh\u002Fdocx\u002Fequations-and-symbols","zh\u002F04.docx\u002F11.equations-and-symbols",{"title":141,"path":142,"stem":143},"样式与主题","\u002Fzh\u002Fdocx\u002Fstyles-and-themes","zh\u002F04.docx\u002F12.styles-and-themes",{"title":145,"path":146,"stem":147},"页面布局","\u002Fzh\u002Fdocx\u002Fpage-layout","zh\u002F04.docx\u002F13.page-layout",{"title":149,"path":150,"stem":151},"引用","\u002Fzh\u002Fdocx\u002Freferences","zh\u002F04.docx\u002F14.references",{"title":153,"path":154,"stem":155},"批注与修订","\u002Fzh\u002Fdocx\u002Fcomments-and-revisions","zh\u002F04.docx\u002F15.comments-and-revisions",{"title":157,"path":158,"stem":159},"导出","\u002Fzh\u002Fdocx\u002Fexport","zh\u002F04.docx\u002F16.export",{"title":72,"path":161,"stem":162},"\u002Fzh\u002Fdocx\u002Fparsing","zh\u002F04.docx\u002F17.parsing",{"title":164,"icon":165,"path":166,"stem":167,"children":168,"page":22},"PPTX","i-lucide-presentation","\u002Fzh\u002Fpptx","zh\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","\u002Fzh\u002Fpptx\u002Foverview","zh\u002F05.pptx\u002F01.overview",{"title":5,"path":174,"stem":175},"\u002Fzh\u002Fpptx\u002Fquickstart","zh\u002F05.pptx\u002F02.quickstart",{"title":177,"path":178,"stem":179},"形状与文本","\u002Fzh\u002Fpptx\u002Fshapes-and-text","zh\u002F05.pptx\u002F03.shapes-and-text",{"title":109,"path":181,"stem":182},"\u002Fzh\u002Fpptx\u002Ftables","zh\u002F05.pptx\u002F04.tables",{"title":113,"path":184,"stem":185},"\u002Fzh\u002Fpptx\u002Fimages","zh\u002F05.pptx\u002F05.images",{"title":117,"path":187,"stem":188},"\u002Fzh\u002Fpptx\u002Fcharts","zh\u002F05.pptx\u002F06.charts",{"title":121,"path":190,"stem":191},"\u002Fzh\u002Fpptx\u002Fsmartart","zh\u002F05.pptx\u002F07.smartart",{"title":125,"path":193,"stem":194},"\u002Fzh\u002Fpptx\u002Fmedia","zh\u002F05.pptx\u002F08.media",{"title":129,"path":196,"stem":197},"\u002Fzh\u002Fpptx\u002Flinks","zh\u002F05.pptx\u002F09.links",{"title":133,"path":199,"stem":200},"\u002Fzh\u002Fpptx\u002Fheaders-and-footers","zh\u002F05.pptx\u002F10.headers-and-footers",{"title":137,"path":202,"stem":203},"\u002Fzh\u002Fpptx\u002Fequations-and-symbols","zh\u002F05.pptx\u002F11.equations-and-symbols",{"title":205,"path":206,"stem":207},"线条与连接符","\u002Fzh\u002Fpptx\u002Flines-and-connectors","zh\u002F05.pptx\u002F12.lines-and-connectors",{"title":141,"path":209,"stem":210},"\u002Fzh\u002Fpptx\u002Fstyles-and-themes","zh\u002F05.pptx\u002F13.styles-and-themes",{"title":212,"path":213,"stem":214},"效果与填充","\u002Fzh\u002Fpptx\u002Feffects-and-fills","zh\u002F05.pptx\u002F14.effects-and-fills",{"title":216,"path":217,"stem":218},"幻灯片布局","\u002Fzh\u002Fpptx\u002Fslide-layout","zh\u002F05.pptx\u002F15.slide-layout",{"title":220,"path":221,"stem":222},"切换效果","\u002Fzh\u002Fpptx\u002Ftransitions","zh\u002F05.pptx\u002F16.transitions",{"title":224,"path":225,"stem":226},"动画效果","\u002Fzh\u002Fpptx\u002Fanimations","zh\u002F05.pptx\u002F17.animations",{"title":157,"path":228,"stem":229},"\u002Fzh\u002Fpptx\u002Fexport","zh\u002F05.pptx\u002F18.export",{"title":72,"path":231,"stem":232},"\u002Fzh\u002Fpptx\u002Fparsing","zh\u002F05.pptx\u002F19.parsing",{"title":234,"path":235,"stem":236},"批注","\u002Fzh\u002Fpptx\u002Fcomments","zh\u002F05.pptx\u002F20.comments",{"id":238,"title":72,"body":239,"description":1075,"extension":1076,"links":1077,"meta":1078,"navigation":330,"path":161,"seo":1079,"stem":162,"__hash__":1080},"docs_zh\u002Fzh\u002F04.docx\u002F17.parsing.md",{"type":240,"value":241,"toc":1068},"minimark",[242,254,258,510,514,521,650,653,882,886,895,1029,1032,1064],[243,244,245,249,250,253],"p",{},[246,247,248],"code",{},"parseDocx"," 函数读取现有 ",[246,251,252],{},".docx"," 文件并提供对其文档部件的访问。",[255,256,257],"h2",{"id":257},"基本用法",[259,260,265],"pre",{"className":261,"code":262,"language":263,"meta":264,"style":264},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { parseDocx } from \"@office-open\u002Fdocx\";\nimport { readFileSync } from \"node:fs\";\n\nconst data = new Uint8Array(readFileSync(\"input.docx\"));\nconst doc = parseDocx(data);\n\n\u002F\u002F 访问文档正文\nconsole.log(doc.body);\n\n\u002F\u002F 访问样式（如果存在）\nconsole.log(doc.styles);\n\n\u002F\u002F 访问编号（如果存在）\nconsole.log(doc.numbering);\n\n\u002F\u002F 访问设置（如果存在）\nconsole.log(doc.settings);\n","ts","",[246,266,267,302,325,332,372,389,394,401,423,428,434,452,457,463,481,486,492],{"__ignoreMap":264},[268,269,272,276,280,284,287,290,293,296,299],"span",{"class":270,"line":271},"line",1,[268,273,275],{"class":274},"s7zQu","import",[268,277,279],{"class":278},"sMK4o"," {",[268,281,283],{"class":282},"sTEyZ"," parseDocx",[268,285,286],{"class":278}," }",[268,288,289],{"class":274}," from",[268,291,292],{"class":278}," \"",[268,294,98],{"class":295},"sfazB",[268,297,298],{"class":278},"\"",[268,300,301],{"class":278},";\n",[268,303,305,307,309,312,314,316,318,321,323],{"class":270,"line":304},2,[268,306,275],{"class":274},[268,308,279],{"class":278},[268,310,311],{"class":282}," readFileSync",[268,313,286],{"class":278},[268,315,289],{"class":274},[268,317,292],{"class":278},[268,319,320],{"class":295},"node:fs",[268,322,298],{"class":278},[268,324,301],{"class":278},[268,326,328],{"class":270,"line":327},3,[268,329,331],{"emptyLinePlaceholder":330},true,"\n",[268,333,335,339,342,345,348,352,355,358,360,362,365,367,370],{"class":270,"line":334},4,[268,336,338],{"class":337},"spNyl","const",[268,340,341],{"class":282}," data ",[268,343,344],{"class":278},"=",[268,346,347],{"class":278}," new",[268,349,351],{"class":350},"s2Zo4"," Uint8Array",[268,353,354],{"class":282},"(",[268,356,357],{"class":350},"readFileSync",[268,359,354],{"class":282},[268,361,298],{"class":278},[268,363,364],{"class":295},"input.docx",[268,366,298],{"class":278},[268,368,369],{"class":282},"))",[268,371,301],{"class":278},[268,373,375,377,380,382,384,387],{"class":270,"line":374},5,[268,376,338],{"class":337},[268,378,379],{"class":282}," doc ",[268,381,344],{"class":278},[268,383,283],{"class":350},[268,385,386],{"class":282},"(data)",[268,388,301],{"class":278},[268,390,392],{"class":270,"line":391},6,[268,393,331],{"emptyLinePlaceholder":330},[268,395,397],{"class":270,"line":396},7,[268,398,400],{"class":399},"sHwdD","\u002F\u002F 访问文档正文\n",[268,402,404,407,410,413,416,418,421],{"class":270,"line":403},8,[268,405,406],{"class":282},"console",[268,408,409],{"class":278},".",[268,411,412],{"class":350},"log",[268,414,415],{"class":282},"(doc",[268,417,409],{"class":278},[268,419,420],{"class":282},"body)",[268,422,301],{"class":278},[268,424,426],{"class":270,"line":425},9,[268,427,331],{"emptyLinePlaceholder":330},[268,429,431],{"class":270,"line":430},10,[268,432,433],{"class":399},"\u002F\u002F 访问样式（如果存在）\n",[268,435,437,439,441,443,445,447,450],{"class":270,"line":436},11,[268,438,406],{"class":282},[268,440,409],{"class":278},[268,442,412],{"class":350},[268,444,415],{"class":282},[268,446,409],{"class":278},[268,448,449],{"class":282},"styles)",[268,451,301],{"class":278},[268,453,455],{"class":270,"line":454},12,[268,456,331],{"emptyLinePlaceholder":330},[268,458,460],{"class":270,"line":459},13,[268,461,462],{"class":399},"\u002F\u002F 访问编号（如果存在）\n",[268,464,466,468,470,472,474,476,479],{"class":270,"line":465},14,[268,467,406],{"class":282},[268,469,409],{"class":278},[268,471,412],{"class":350},[268,473,415],{"class":282},[268,475,409],{"class":278},[268,477,478],{"class":282},"numbering)",[268,480,301],{"class":278},[268,482,484],{"class":270,"line":483},15,[268,485,331],{"emptyLinePlaceholder":330},[268,487,489],{"class":270,"line":488},16,[268,490,491],{"class":399},"\u002F\u002F 访问设置（如果存在）\n",[268,493,495,497,499,501,503,505,508],{"class":270,"line":494},17,[268,496,406],{"class":282},[268,498,409],{"class":278},[268,500,412],{"class":350},[268,502,415],{"class":282},[268,504,409],{"class":278},[268,506,507],{"class":282},"settings)",[268,509,301],{"class":278},[255,511,513],{"id":512},"docxdocument-api","DocxDocument API",[243,515,516,517,520],{},"返回的 ",[246,518,519],{},"DocxDocument"," 对象包含以下内容：",[522,523,524,540],"table",{},[525,526,527],"thead",{},[528,529,530,534,537],"tr",{},[531,532,533],"th",{},"属性",[531,535,536],{},"类型",[531,538,539],{},"说明",[541,542,543,559,578,593,607,621,635],"tbody",{},[528,544,545,551,556],{},[546,547,548],"td",{},[246,549,550],{},"doc",[546,552,553],{},[246,554,555],{},"ParsedDocument",[546,557,558],{},"完整的已解析文档（所有部件）",[528,560,561,566,571],{},[546,562,563],{},[246,564,565],{},"body",[546,567,568],{},[246,569,570],{},"Element",[546,572,573,574,577],{},"文档正文元素（",[246,575,576],{},"w:body","）",[528,579,580,585,590],{},[546,581,582],{},[246,583,584],{},"styles",[546,586,587],{},[246,588,589],{},"Element | undefined",[546,591,592],{},"样式元素",[528,594,595,600,604],{},[546,596,597],{},[246,598,599],{},"numbering",[546,601,602],{},[246,603,589],{},[546,605,606],{},"编号定义",[528,608,609,614,618],{},[546,610,611],{},[246,612,613],{},"settings",[546,615,616],{},[246,617,589],{},[546,619,620],{},"文档设置",[528,622,623,628,632],{},[546,624,625],{},[246,626,627],{},"fontTable",[546,629,630],{},[246,631,589],{},[546,633,634],{},"字体表",[528,636,637,642,647],{},[546,638,639],{},[246,640,641],{},"partRefs",[546,643,644],{},[246,645,646],{},"DocxPartRefs",[546,648,649],{},"页眉、页脚、注释的引用",[255,651,652],{"id":652},"访问部件",[259,654,656],{"className":261,"code":655,"language":263,"meta":264,"style":264},"const doc = parseDocx(data);\n\n\u002F\u002F 按路径获取所有部件\nconst body = doc.doc.get(\"word\u002Fdocument.xml\");\nconst styles = doc.doc.get(\"word\u002Fstyles.xml\");\nconst header = doc.doc.get(doc.partRefs.headers.get(\"rId1\"));\n\n\u002F\u002F 部件引用将关系 ID 映射到路径\nfor (const [rId, path] of doc.partRefs.headers) {\n    const header = doc.doc.get(path);\n}\n",[246,657,658,672,676,681,716,748,795,799,804,846,877],{"__ignoreMap":264},[268,659,660,662,664,666,668,670],{"class":270,"line":271},[268,661,338],{"class":337},[268,663,379],{"class":282},[268,665,344],{"class":278},[268,667,283],{"class":350},[268,669,386],{"class":282},[268,671,301],{"class":278},[268,673,674],{"class":270,"line":304},[268,675,331],{"emptyLinePlaceholder":330},[268,677,678],{"class":270,"line":327},[268,679,680],{"class":399},"\u002F\u002F 按路径获取所有部件\n",[268,682,683,685,688,690,693,695,697,699,702,704,706,709,711,714],{"class":270,"line":334},[268,684,338],{"class":337},[268,686,687],{"class":282}," body ",[268,689,344],{"class":278},[268,691,692],{"class":282}," doc",[268,694,409],{"class":278},[268,696,550],{"class":282},[268,698,409],{"class":278},[268,700,701],{"class":350},"get",[268,703,354],{"class":282},[268,705,298],{"class":278},[268,707,708],{"class":295},"word\u002Fdocument.xml",[268,710,298],{"class":278},[268,712,713],{"class":282},")",[268,715,301],{"class":278},[268,717,718,720,723,725,727,729,731,733,735,737,739,742,744,746],{"class":270,"line":374},[268,719,338],{"class":337},[268,721,722],{"class":282}," styles ",[268,724,344],{"class":278},[268,726,692],{"class":282},[268,728,409],{"class":278},[268,730,550],{"class":282},[268,732,409],{"class":278},[268,734,701],{"class":350},[268,736,354],{"class":282},[268,738,298],{"class":278},[268,740,741],{"class":295},"word\u002Fstyles.xml",[268,743,298],{"class":278},[268,745,713],{"class":282},[268,747,301],{"class":278},[268,749,750,752,755,757,759,761,763,765,767,769,771,773,775,778,780,782,784,786,789,791,793],{"class":270,"line":391},[268,751,338],{"class":337},[268,753,754],{"class":282}," header ",[268,756,344],{"class":278},[268,758,692],{"class":282},[268,760,409],{"class":278},[268,762,550],{"class":282},[268,764,409],{"class":278},[268,766,701],{"class":350},[268,768,415],{"class":282},[268,770,409],{"class":278},[268,772,641],{"class":282},[268,774,409],{"class":278},[268,776,777],{"class":282},"headers",[268,779,409],{"class":278},[268,781,701],{"class":350},[268,783,354],{"class":282},[268,785,298],{"class":278},[268,787,788],{"class":295},"rId1",[268,790,298],{"class":278},[268,792,369],{"class":282},[268,794,301],{"class":278},[268,796,797],{"class":270,"line":396},[268,798,331],{"emptyLinePlaceholder":330},[268,800,801],{"class":270,"line":403},[268,802,803],{"class":399},"\u002F\u002F 部件引用将关系 ID 映射到路径\n",[268,805,806,809,812,814,817,820,823,826,829,832,834,836,838,840,843],{"class":270,"line":425},[268,807,808],{"class":274},"for",[268,810,811],{"class":282}," (",[268,813,338],{"class":337},[268,815,816],{"class":278}," [",[268,818,819],{"class":282},"rId",[268,821,822],{"class":278},",",[268,824,825],{"class":282}," path",[268,827,828],{"class":278},"]",[268,830,831],{"class":278}," of",[268,833,692],{"class":282},[268,835,409],{"class":278},[268,837,641],{"class":282},[268,839,409],{"class":278},[268,841,842],{"class":282},"headers) ",[268,844,845],{"class":278},"{\n",[268,847,848,851,854,857,859,861,863,865,867,870,873,875],{"class":270,"line":430},[268,849,850],{"class":337},"    const",[268,852,853],{"class":282}," header",[268,855,856],{"class":278}," =",[268,858,692],{"class":282},[268,860,409],{"class":278},[268,862,550],{"class":282},[268,864,409],{"class":278},[268,866,701],{"class":350},[268,868,354],{"class":869},"swJcz",[268,871,872],{"class":282},"path",[268,874,713],{"class":869},[268,876,301],{"class":278},[268,878,879],{"class":270,"line":436},[268,880,881],{"class":278},"}\n",[255,883,885],{"id":884},"处理-xml-元素","处理 XML 元素",[243,887,888,889,891,892,894],{},"已解析的元素使用 ",[246,890,68],{}," 库的 ",[246,893,570],{}," 类型：",[259,896,898],{"className":261,"code":897,"language":263,"meta":264,"style":264},"import { attr } from \"@office-open\u002Fxml\";\n\n\u002F\u002F 访问元素属性\nconst tagName = attr(doc.body, \"tagName\");\n\n\u002F\u002F 遍历子元素\nfor (const child of doc.body.elements ?? []) {\n    console.log(child.name);\n}\n",[246,899,900,921,925,930,960,964,969,1002,1025],{"__ignoreMap":264},[268,901,902,904,906,909,911,913,915,917,919],{"class":270,"line":271},[268,903,275],{"class":274},[268,905,279],{"class":278},[268,907,908],{"class":282}," attr",[268,910,286],{"class":278},[268,912,289],{"class":274},[268,914,292],{"class":278},[268,916,68],{"class":295},[268,918,298],{"class":278},[268,920,301],{"class":278},[268,922,923],{"class":270,"line":304},[268,924,331],{"emptyLinePlaceholder":330},[268,926,927],{"class":270,"line":327},[268,928,929],{"class":399},"\u002F\u002F 访问元素属性\n",[268,931,932,934,937,939,941,943,945,947,949,951,954,956,958],{"class":270,"line":334},[268,933,338],{"class":337},[268,935,936],{"class":282}," tagName ",[268,938,344],{"class":278},[268,940,908],{"class":350},[268,942,415],{"class":282},[268,944,409],{"class":278},[268,946,565],{"class":282},[268,948,822],{"class":278},[268,950,292],{"class":278},[268,952,953],{"class":295},"tagName",[268,955,298],{"class":278},[268,957,713],{"class":282},[268,959,301],{"class":278},[268,961,962],{"class":270,"line":374},[268,963,331],{"emptyLinePlaceholder":330},[268,965,966],{"class":270,"line":391},[268,967,968],{"class":399},"\u002F\u002F 遍历子元素\n",[268,970,971,973,975,977,980,983,985,987,989,991,994,997,1000],{"class":270,"line":396},[268,972,808],{"class":274},[268,974,811],{"class":282},[268,976,338],{"class":337},[268,978,979],{"class":282}," child ",[268,981,982],{"class":278},"of",[268,984,692],{"class":282},[268,986,409],{"class":278},[268,988,565],{"class":282},[268,990,409],{"class":278},[268,992,993],{"class":282},"elements ",[268,995,996],{"class":278},"??",[268,998,999],{"class":282}," []) ",[268,1001,845],{"class":278},[268,1003,1004,1007,1009,1011,1013,1016,1018,1021,1023],{"class":270,"line":403},[268,1005,1006],{"class":282},"    console",[268,1008,409],{"class":278},[268,1010,412],{"class":350},[268,1012,354],{"class":869},[268,1014,1015],{"class":282},"child",[268,1017,409],{"class":278},[268,1019,1020],{"class":282},"name",[268,1022,713],{"class":869},[268,1024,301],{"class":278},[268,1026,1027],{"class":270,"line":425},[268,1028,881],{"class":278},[255,1030,1031],{"id":1031},"使用场景",[1033,1034,1035,1043,1052,1058],"ul",{},[1036,1037,1038,1042],"li",{},[1039,1040,1041],"strong",{},"提取文本"," — 遍历正文元素以提取段落文本",[1036,1044,1045,1048,1049,1051],{},[1039,1046,1047],{},"合并文档"," — 解析多个 ",[246,1050,252],{}," 文件并合并其内容",[1036,1053,1054,1057],{},[1039,1055,1056],{},"检查格式"," — 读取样式和编号定义",[1036,1059,1060,1063],{},[1039,1061,1062],{},"转换"," — 修改已解析的元素并重建文档",[1065,1066,1067],"style",{},"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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .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 .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 .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}",{"title":264,"searchDepth":304,"depth":304,"links":1069},[1070,1071,1072,1073,1074],{"id":257,"depth":304,"text":257},{"id":512,"depth":304,"text":513},{"id":652,"depth":304,"text":652},{"id":884,"depth":304,"text":885},{"id":1031,"depth":304,"text":1031},"使用 parseDocx 解析和检查现有 .docx 文件","md",null,{},{"title":72,"description":1075},"HIeumsexVb_c8ZdsBsxjDAZW4voMmO1YmHrizMypQ2M",[1082,1084],{"title":157,"path":158,"stem":159,"description":1083,"children":-1},"将文档导出为 buffer、blob、base64、字符串或流",{"title":170,"path":171,"stem":172,"description":1085,"children":-1},"使用声明式 TypeScript API 生成 .pptx 演示文稿",1778862990458]