[{"data":1,"prerenderedAt":1158},["ShallowReactive",2],{"quirekit-doc:\u002Fclassic\u002Fword-tasks":3,"quirekit-source:classic\u002Fword\u002Ftasks.ts":245,"mdc--rbp0pu-key":246},{"id":4,"title":5,"body":6,"description":233,"extension":234,"keywords":235,"locale":236,"meta":237,"navigation":238,"order":239,"path":240,"section":241,"seo":242,"stem":243,"__hash__":244},"docs\u002Fclassic\u002Fword-tasks.zh-CN.md","开发 Word 文档操作",{"type":7,"value":8,"toc":223},"minimark",[9,22,26,108,111,115,122,129,133,139,145,149,162,166,180,191,195,213,216,220],[10,11,12,13,17,18,21],"p",{},"本章从已挂载的 Word Classic 开始。",[14,15,16],"code",{},"instance.editor"," 提供正文命令，",[14,19,20],{},"instance.ui"," 控制工作区。不要根据按钮文案构造字符串命令；用已安装扩展提供的类型化方法。",[23,24,25],"h2",{"id":25},"先分清操作对象",[27,28,29,45],"table",{},[30,31,32],"thead",{},[33,34,35,39,42],"tr",{},[36,37,38],"th",{},"用户目标",[36,40,41],{},"规范对象",[36,43,44],{},"避免的做法",[46,47,48,60,75,86,97],"tbody",{},[33,49,50,54,57],{},[51,52,53],"td",{},"设置二级标题",[51,55,56],{},"段落样式身份及定义",[51,58,59],{},"只放大字体，或套用通用 heading 节点",[33,61,62,65,68],{},[51,63,64],{},"连续编号",[51,66,67],{},"编号定义、实例与段落关联",[51,69,70,71,74],{},"把 ",[14,72,73],{},"1."," 写进文字",[33,76,77,80,83],{},[51,78,79],{},"插入表格",[51,81,82],{},"逻辑表格、行与网格",[51,84,85],{},"按屏幕上的分页片段修改",[33,87,88,91,94],{},[51,89,90],{},"修改页边距",[51,92,93],{},"当前文档节",[51,95,96],{},"用 CSS 改纸张内边距",[33,98,99,102,105],{},[51,100,101],{},"显示页码",[51,103,104],{},"页眉页脚 story 与 PAGE 字段",[51,106,107],{},"把当前页数作为固定文字保存",[10,109,110],{},"画面中的一页是排版结果，一个节可以跨多页。Word 表格也可能跨页；命令修改逻辑对象，布局负责重新分页。",[23,112,114],{"id":113},"_1-给当前段落应用样式","1. 给当前段落应用样式",[10,116,117,118,121],{},"使用 ",[14,119,120],{},"applyWordParagraphStyle({ styleId: 'Heading2' })","，前提是当前文档的样式注册表含有这个 ID。名称来自数据，不能只凭界面显示的中文名称猜 ID。导入的文档可能使用自己的样式身份；缺失时应提示或先通过样式管理流程建立定义。",[10,123,124,125,128],{},"Word 模型的标题通常仍是带 ",[14,126,127],{},"wordParagraph.styleId"," 的 paragraph，不等于 Core StarterKit 的 heading 节点。字符样式与段落样式也不同；只给选中文字强调时，用字符样式或对应的文字格式命令。",[23,130,132],{"id":131},"_2-编号与表格跟随当前选区","2. 编号与表格跟随当前选区",[10,134,135,138],{},[14,136,137],{},"toggleWordOrderedList()"," 在当前段落上建立或移除编号关系；继续编号、重新开始和多级编号还需遵守文档已有定义，不能通过替换显示文本实现。",[10,140,141,144],{},[14,142,143],{},"insertWordTable({ rowCount: 3, columnCount: 2 })"," 插入三行两列的逻辑表格。表格内操作可使用当前结构选区或命令公开的位置参数；每次操作重新读取选区，避免保存滚动前的像素位置作为文档位置。",[23,146,148],{"id":147},"_3-把操作接到按钮","3. 把操作接到按钮",[10,150,151,152,157,158,161],{},"下面四个函数各执行一个任务，沿用",[153,154,156],"a",{"href":155},"\u002Fclassic\u002Fquick-start","快速接入","创建的 ",[14,159,160],{},"instance","。它们检查当前 Core 与只读输入状态，仍需应用在调用前检查业务权限。",[163,164],"docs-recipe",{"name":165},"classic\u002Fword\u002Ftasks",[10,167,70,168,171,172,175,176,179],{},[14,169,170],{},"applySectionHeading(instance)"," 或 ",[14,173,174],{},"insertComparisonTable(instance)"," 放到按钮点击处理函数中。返回 false 时不要显示“操作成功”；可用性查询使用相同参数的 ",[14,177,178],{},"editor.can()","，它不授予写权限。连续调用多个命令时，也不能把后一步 false 当作前面步骤已回滚。",[10,181,182,185,186,190],{},[14,183,184],{},"setOneInchMargins()"," 的位置是 ",[187,188,189],"strong",{},"当前正文中节前的文档位置","，不是页码或屏幕坐标；不要把初始文档的 0 永远用于所有节。此 API 使用 twips，1440 twips 为一英寸。页码示例明确指定位置、格式、起始值与模板，字段值由排版更新。",[23,192,194],{"id":193},"_4-专业能力单独装配","4. 专业能力单独装配",[10,196,197,198,202,203,207,208,212],{},"审阅修订、批注流程、内容控件与公文模板等能力按所用专业包安装。标准 Word preset、设置授权码与隐藏按钮都不能代替插件装配；查询",[153,199,201],{"href":200},"\u002Fclassic\u002Fcommercial","付费使用","和",[153,204,206],{"href":205},"\u002Fclassic\u002Fplugins","产品插件","，逐项接入方法由",[153,209,211],{"href":210},"\u002Fplugins","插件文档","说明。",[10,214,215],{},"修订模式下，不是每一种页面或文档级操作都能记录为修订。产品应展示真实能力与诊断；不能把任意命令标成“可接受\u002F拒绝的修改”。",[23,217,219],{"id":218},"_5-用数据与文件验证","5. 用数据与文件验证",[10,221,222],{},"应用样式、插入表格、设置页码后，检查 JSON 中的规范身份与关系，再导出并重新导入 DOCX。比较样式、编号、表格网格、节和页眉页脚，查看转换报告；正文文字相同不足以证明 Word 语义保留。跨应用的像素一致性取决于字体与布局支持，不从一次导出成功推断。",{"title":224,"searchDepth":225,"depth":225,"links":226},"",2,[227,228,229,230,231,232],{"id":25,"depth":225,"text":25},{"id":113,"depth":225,"text":114},{"id":131,"depth":225,"text":132},{"id":147,"depth":225,"text":148},{"id":193,"depth":225,"text":194},{"id":218,"depth":225,"text":219},"把样式、编号、表格和页码接到自己的产品按钮，理解节与页面的区别。","md",null,"zh-CN",{},true,5,"\u002Fclassic\u002Fword-tasks","Classic 开发",{"title":5,"description":233},"classic\u002Fword-tasks.zh-CN","fbFAiPJKQrJ4oYcN9SZWKFk5Bep88M8ZjfRYDcdKN1w","import type { ClassicEditorInstance } from \"@quirekit\u002Fclassic-editor\";\n\u002F\u002F Installing the Word preset supplies these command implementations and declarations.\nimport type {} from \"@quirekit\u002Fclassic-docx\";\n\n\u002F** @param instance - Mounted Word product. @returns Whether the existing Heading2 style was applied. *\u002F\nexport function applySectionHeading(instance: ClassicEditorInstance): boolean {\n  const editor = instance.editor;\n  return !!editor?.isEditable && editor.commands.applyWordParagraphStyle({ styleId: \"Heading2\" });\n}\n\n\u002F** @param instance - Mounted Word product. @returns Whether a logical two-column table was inserted. *\u002F\nexport function insertComparisonTable(instance: ClassicEditorInstance): boolean {\n  const editor = instance.editor;\n  return !!editor?.isEditable && editor.commands.insertWordTable({ rowCount: 3, columnCount: 2 });\n}\n\n\u002F** @param instance - Mounted Word product. @returns Whether semantic footer page numbering was installed. *\u002F\nexport function addFooterPageNumber(instance: ClassicEditorInstance): boolean {\n  const editor = instance.editor;\n  return !!editor?.isEditable && editor.commands.setWordPageNumber({\n    location: \"footer\", alignment: \"center\", format: \"decimal\", start: 1, template: { kind: \"plain\" },\n  });\n}\n\n\u002F**\n * Changes one explicit section rather than a painted page fragment.\n * @param instance - Mounted Word product.\n * @param sectionPosition - Current document position immediately before a wordSection.\n * @returns Whether one-inch horizontal margins were accepted.\n *\u002F\nexport function setOneInchMargins(instance: ClassicEditorInstance, sectionPosition: number): boolean {\n  const editor = instance.editor;\n  return !!editor?.isEditable && editor.commands.setWordSectionMargins({ sectionPosition, leftTwips: 1440, rightTwips: 1440 });\n}\n",{"data":247,"body":248},{},{"type":249,"children":250},"root",[251,1152],{"type":252,"tag":253,"props":254,"children":258},"element","pre",{"className":255,"code":256,"language":257,"meta":224,"style":224},"language-ts shiki shiki-themes github-light github-light github-dark","import type { ClassicEditorInstance } from \"@quirekit\u002Fclassic-editor\";\n\u002F\u002F Installing the Word preset supplies these command implementations and declarations.\nimport type {} from \"@quirekit\u002Fclassic-docx\";\n\n\u002F** @param instance - Mounted Word product. @returns Whether the existing Heading2 style was applied. *\u002F\nexport function applySectionHeading(instance: ClassicEditorInstance): boolean {\n  const editor = instance.editor;\n  return !!editor?.isEditable && editor.commands.applyWordParagraphStyle({ styleId: \"Heading2\" });\n}\n\n\u002F** @param instance - Mounted Word product. @returns Whether a logical two-column table was inserted. *\u002F\nexport function insertComparisonTable(instance: ClassicEditorInstance): boolean {\n  const editor = instance.editor;\n  return !!editor?.isEditable && editor.commands.insertWordTable({ rowCount: 3, columnCount: 2 });\n}\n\n\u002F** @param instance - Mounted Word product. @returns Whether semantic footer page numbering was installed. *\u002F\nexport function addFooterPageNumber(instance: ClassicEditorInstance): boolean {\n  const editor = instance.editor;\n  return !!editor?.isEditable && editor.commands.setWordPageNumber({\n    location: \"footer\", alignment: \"center\", format: \"decimal\", start: 1, template: { kind: \"plain\" },\n  });\n}\n\n\u002F**\n * Changes one explicit section rather than a painted page fragment.\n * @param instance - Mounted Word product.\n * @param sectionPosition - Current document position immediately before a wordSection.\n * @returns Whether one-inch horizontal margins were accepted.\n *\u002F\nexport function setOneInchMargins(instance: ClassicEditorInstance, sectionPosition: number): boolean {\n  const editor = instance.editor;\n  return !!editor?.isEditable && editor.commands.setWordSectionMargins({ sectionPosition, leftTwips: 1440, rightTwips: 1440 });\n}\n\n","ts",[259],{"type":252,"tag":14,"props":260,"children":261},{"__ignoreMap":224},[262,302,311,341,350,383,443,467,516,525,533,562,611,631,684,692,700,729,778,798,832,891,900,908,916,925,934,956,978,995,1004,1072,1092,1144],{"type":252,"tag":263,"props":264,"children":267},"span",{"class":265,"line":266},"line",1,[268,275,280,286,291,297],{"type":252,"tag":263,"props":269,"children":271},{"style":270},"--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583",[272],{"type":273,"value":274},"text","import",{"type":252,"tag":263,"props":276,"children":277},{"style":270},[278],{"type":273,"value":279}," type",{"type":252,"tag":263,"props":281,"children":283},{"style":282},"--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8",[284],{"type":273,"value":285}," { ClassicEditorInstance } ",{"type":252,"tag":263,"props":287,"children":288},{"style":270},[289],{"type":273,"value":290},"from",{"type":252,"tag":263,"props":292,"children":294},{"style":293},"--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF",[295],{"type":273,"value":296}," \"@quirekit\u002Fclassic-editor\"",{"type":252,"tag":263,"props":298,"children":299},{"style":282},[300],{"type":273,"value":301},";\n",{"type":252,"tag":263,"props":303,"children":304},{"class":265,"line":225},[305],{"type":252,"tag":263,"props":306,"children":308},{"style":307},"--shiki-default:#6A737D;--shiki-light:#6A737D;--shiki-dark:#6A737D",[309],{"type":273,"value":310},"\u002F\u002F Installing the Word preset supplies these command implementations and declarations.\n",{"type":252,"tag":263,"props":312,"children":314},{"class":265,"line":313},3,[315,319,323,328,332,337],{"type":252,"tag":263,"props":316,"children":317},{"style":270},[318],{"type":273,"value":274},{"type":252,"tag":263,"props":320,"children":321},{"style":270},[322],{"type":273,"value":279},{"type":252,"tag":263,"props":324,"children":325},{"style":282},[326],{"type":273,"value":327}," {} ",{"type":252,"tag":263,"props":329,"children":330},{"style":270},[331],{"type":273,"value":290},{"type":252,"tag":263,"props":333,"children":334},{"style":293},[335],{"type":273,"value":336}," \"@quirekit\u002Fclassic-docx\"",{"type":252,"tag":263,"props":338,"children":339},{"style":282},[340],{"type":273,"value":301},{"type":252,"tag":263,"props":342,"children":344},{"class":265,"line":343},4,[345],{"type":252,"tag":263,"props":346,"children":347},{"emptyLinePlaceholder":238},[348],{"type":273,"value":349},"\n",{"type":252,"tag":263,"props":351,"children":352},{"class":265,"line":239},[353,358,363,368,373,378],{"type":252,"tag":263,"props":354,"children":355},{"style":307},[356],{"type":273,"value":357},"\u002F** ",{"type":252,"tag":263,"props":359,"children":360},{"style":270},[361],{"type":273,"value":362},"@param",{"type":252,"tag":263,"props":364,"children":365},{"style":282},[366],{"type":273,"value":367}," instance",{"type":252,"tag":263,"props":369,"children":370},{"style":307},[371],{"type":273,"value":372}," - Mounted Word product. ",{"type":252,"tag":263,"props":374,"children":375},{"style":270},[376],{"type":273,"value":377},"@returns",{"type":252,"tag":263,"props":379,"children":380},{"style":307},[381],{"type":273,"value":382}," Whether the existing Heading2 style was applied. *\u002F\n",{"type":252,"tag":263,"props":384,"children":386},{"class":265,"line":385},6,[387,392,397,403,408,413,418,423,428,432,438],{"type":252,"tag":263,"props":388,"children":389},{"style":270},[390],{"type":273,"value":391},"export",{"type":252,"tag":263,"props":393,"children":394},{"style":270},[395],{"type":273,"value":396}," function",{"type":252,"tag":263,"props":398,"children":400},{"style":399},"--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0",[401],{"type":273,"value":402}," applySectionHeading",{"type":252,"tag":263,"props":404,"children":405},{"style":282},[406],{"type":273,"value":407},"(",{"type":252,"tag":263,"props":409,"children":411},{"style":410},"--shiki-default:#E36209;--shiki-light:#E36209;--shiki-dark:#FFAB70",[412],{"type":273,"value":160},{"type":252,"tag":263,"props":414,"children":415},{"style":270},[416],{"type":273,"value":417},":",{"type":252,"tag":263,"props":419,"children":420},{"style":399},[421],{"type":273,"value":422}," ClassicEditorInstance",{"type":252,"tag":263,"props":424,"children":425},{"style":282},[426],{"type":273,"value":427},")",{"type":252,"tag":263,"props":429,"children":430},{"style":270},[431],{"type":273,"value":417},{"type":252,"tag":263,"props":433,"children":435},{"style":434},"--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF",[436],{"type":273,"value":437}," boolean",{"type":252,"tag":263,"props":439,"children":440},{"style":282},[441],{"type":273,"value":442}," {\n",{"type":252,"tag":263,"props":444,"children":446},{"class":265,"line":445},7,[447,452,457,462],{"type":252,"tag":263,"props":448,"children":449},{"style":270},[450],{"type":273,"value":451},"  const",{"type":252,"tag":263,"props":453,"children":454},{"style":434},[455],{"type":273,"value":456}," editor",{"type":252,"tag":263,"props":458,"children":459},{"style":270},[460],{"type":273,"value":461}," =",{"type":252,"tag":263,"props":463,"children":464},{"style":282},[465],{"type":273,"value":466}," instance.editor;\n",{"type":252,"tag":263,"props":468,"children":470},{"class":265,"line":469},8,[471,476,481,486,491,496,501,506,511],{"type":252,"tag":263,"props":472,"children":473},{"style":270},[474],{"type":273,"value":475},"  return",{"type":252,"tag":263,"props":477,"children":478},{"style":270},[479],{"type":273,"value":480}," !!",{"type":252,"tag":263,"props":482,"children":483},{"style":282},[484],{"type":273,"value":485},"editor?.isEditable ",{"type":252,"tag":263,"props":487,"children":488},{"style":270},[489],{"type":273,"value":490},"&&",{"type":252,"tag":263,"props":492,"children":493},{"style":282},[494],{"type":273,"value":495}," editor.commands.",{"type":252,"tag":263,"props":497,"children":498},{"style":399},[499],{"type":273,"value":500},"applyWordParagraphStyle",{"type":252,"tag":263,"props":502,"children":503},{"style":282},[504],{"type":273,"value":505},"({ styleId: ",{"type":252,"tag":263,"props":507,"children":508},{"style":293},[509],{"type":273,"value":510},"\"Heading2\"",{"type":252,"tag":263,"props":512,"children":513},{"style":282},[514],{"type":273,"value":515}," });\n",{"type":252,"tag":263,"props":517,"children":519},{"class":265,"line":518},9,[520],{"type":252,"tag":263,"props":521,"children":522},{"style":282},[523],{"type":273,"value":524},"}\n",{"type":252,"tag":263,"props":526,"children":528},{"class":265,"line":527},10,[529],{"type":252,"tag":263,"props":530,"children":531},{"emptyLinePlaceholder":238},[532],{"type":273,"value":349},{"type":252,"tag":263,"props":534,"children":536},{"class":265,"line":535},11,[537,541,545,549,553,557],{"type":252,"tag":263,"props":538,"children":539},{"style":307},[540],{"type":273,"value":357},{"type":252,"tag":263,"props":542,"children":543},{"style":270},[544],{"type":273,"value":362},{"type":252,"tag":263,"props":546,"children":547},{"style":282},[548],{"type":273,"value":367},{"type":252,"tag":263,"props":550,"children":551},{"style":307},[552],{"type":273,"value":372},{"type":252,"tag":263,"props":554,"children":555},{"style":270},[556],{"type":273,"value":377},{"type":252,"tag":263,"props":558,"children":559},{"style":307},[560],{"type":273,"value":561}," Whether a logical two-column table was inserted. *\u002F\n",{"type":252,"tag":263,"props":563,"children":565},{"class":265,"line":564},12,[566,570,574,579,583,587,591,595,599,603,607],{"type":252,"tag":263,"props":567,"children":568},{"style":270},[569],{"type":273,"value":391},{"type":252,"tag":263,"props":571,"children":572},{"style":270},[573],{"type":273,"value":396},{"type":252,"tag":263,"props":575,"children":576},{"style":399},[577],{"type":273,"value":578}," insertComparisonTable",{"type":252,"tag":263,"props":580,"children":581},{"style":282},[582],{"type":273,"value":407},{"type":252,"tag":263,"props":584,"children":585},{"style":410},[586],{"type":273,"value":160},{"type":252,"tag":263,"props":588,"children":589},{"style":270},[590],{"type":273,"value":417},{"type":252,"tag":263,"props":592,"children":593},{"style":399},[594],{"type":273,"value":422},{"type":252,"tag":263,"props":596,"children":597},{"style":282},[598],{"type":273,"value":427},{"type":252,"tag":263,"props":600,"children":601},{"style":270},[602],{"type":273,"value":417},{"type":252,"tag":263,"props":604,"children":605},{"style":434},[606],{"type":273,"value":437},{"type":252,"tag":263,"props":608,"children":609},{"style":282},[610],{"type":273,"value":442},{"type":252,"tag":263,"props":612,"children":614},{"class":265,"line":613},13,[615,619,623,627],{"type":252,"tag":263,"props":616,"children":617},{"style":270},[618],{"type":273,"value":451},{"type":252,"tag":263,"props":620,"children":621},{"style":434},[622],{"type":273,"value":456},{"type":252,"tag":263,"props":624,"children":625},{"style":270},[626],{"type":273,"value":461},{"type":252,"tag":263,"props":628,"children":629},{"style":282},[630],{"type":273,"value":466},{"type":252,"tag":263,"props":632,"children":634},{"class":265,"line":633},14,[635,639,643,647,651,655,660,665,670,675,680],{"type":252,"tag":263,"props":636,"children":637},{"style":270},[638],{"type":273,"value":475},{"type":252,"tag":263,"props":640,"children":641},{"style":270},[642],{"type":273,"value":480},{"type":252,"tag":263,"props":644,"children":645},{"style":282},[646],{"type":273,"value":485},{"type":252,"tag":263,"props":648,"children":649},{"style":270},[650],{"type":273,"value":490},{"type":252,"tag":263,"props":652,"children":653},{"style":282},[654],{"type":273,"value":495},{"type":252,"tag":263,"props":656,"children":657},{"style":399},[658],{"type":273,"value":659},"insertWordTable",{"type":252,"tag":263,"props":661,"children":662},{"style":282},[663],{"type":273,"value":664},"({ rowCount: ",{"type":252,"tag":263,"props":666,"children":667},{"style":434},[668],{"type":273,"value":669},"3",{"type":252,"tag":263,"props":671,"children":672},{"style":282},[673],{"type":273,"value":674},", columnCount: ",{"type":252,"tag":263,"props":676,"children":677},{"style":434},[678],{"type":273,"value":679},"2",{"type":252,"tag":263,"props":681,"children":682},{"style":282},[683],{"type":273,"value":515},{"type":252,"tag":263,"props":685,"children":687},{"class":265,"line":686},15,[688],{"type":252,"tag":263,"props":689,"children":690},{"style":282},[691],{"type":273,"value":524},{"type":252,"tag":263,"props":693,"children":695},{"class":265,"line":694},16,[696],{"type":252,"tag":263,"props":697,"children":698},{"emptyLinePlaceholder":238},[699],{"type":273,"value":349},{"type":252,"tag":263,"props":701,"children":703},{"class":265,"line":702},17,[704,708,712,716,720,724],{"type":252,"tag":263,"props":705,"children":706},{"style":307},[707],{"type":273,"value":357},{"type":252,"tag":263,"props":709,"children":710},{"style":270},[711],{"type":273,"value":362},{"type":252,"tag":263,"props":713,"children":714},{"style":282},[715],{"type":273,"value":367},{"type":252,"tag":263,"props":717,"children":718},{"style":307},[719],{"type":273,"value":372},{"type":252,"tag":263,"props":721,"children":722},{"style":270},[723],{"type":273,"value":377},{"type":252,"tag":263,"props":725,"children":726},{"style":307},[727],{"type":273,"value":728}," Whether semantic footer page numbering was installed. *\u002F\n",{"type":252,"tag":263,"props":730,"children":732},{"class":265,"line":731},18,[733,737,741,746,750,754,758,762,766,770,774],{"type":252,"tag":263,"props":734,"children":735},{"style":270},[736],{"type":273,"value":391},{"type":252,"tag":263,"props":738,"children":739},{"style":270},[740],{"type":273,"value":396},{"type":252,"tag":263,"props":742,"children":743},{"style":399},[744],{"type":273,"value":745}," addFooterPageNumber",{"type":252,"tag":263,"props":747,"children":748},{"style":282},[749],{"type":273,"value":407},{"type":252,"tag":263,"props":751,"children":752},{"style":410},[753],{"type":273,"value":160},{"type":252,"tag":263,"props":755,"children":756},{"style":270},[757],{"type":273,"value":417},{"type":252,"tag":263,"props":759,"children":760},{"style":399},[761],{"type":273,"value":422},{"type":252,"tag":263,"props":763,"children":764},{"style":282},[765],{"type":273,"value":427},{"type":252,"tag":263,"props":767,"children":768},{"style":270},[769],{"type":273,"value":417},{"type":252,"tag":263,"props":771,"children":772},{"style":434},[773],{"type":273,"value":437},{"type":252,"tag":263,"props":775,"children":776},{"style":282},[777],{"type":273,"value":442},{"type":252,"tag":263,"props":779,"children":781},{"class":265,"line":780},19,[782,786,790,794],{"type":252,"tag":263,"props":783,"children":784},{"style":270},[785],{"type":273,"value":451},{"type":252,"tag":263,"props":787,"children":788},{"style":434},[789],{"type":273,"value":456},{"type":252,"tag":263,"props":791,"children":792},{"style":270},[793],{"type":273,"value":461},{"type":252,"tag":263,"props":795,"children":796},{"style":282},[797],{"type":273,"value":466},{"type":252,"tag":263,"props":799,"children":801},{"class":265,"line":800},20,[802,806,810,814,818,822,827],{"type":252,"tag":263,"props":803,"children":804},{"style":270},[805],{"type":273,"value":475},{"type":252,"tag":263,"props":807,"children":808},{"style":270},[809],{"type":273,"value":480},{"type":252,"tag":263,"props":811,"children":812},{"style":282},[813],{"type":273,"value":485},{"type":252,"tag":263,"props":815,"children":816},{"style":270},[817],{"type":273,"value":490},{"type":252,"tag":263,"props":819,"children":820},{"style":282},[821],{"type":273,"value":495},{"type":252,"tag":263,"props":823,"children":824},{"style":399},[825],{"type":273,"value":826},"setWordPageNumber",{"type":252,"tag":263,"props":828,"children":829},{"style":282},[830],{"type":273,"value":831},"({\n",{"type":252,"tag":263,"props":833,"children":835},{"class":265,"line":834},21,[836,841,846,851,856,861,866,871,876,881,886],{"type":252,"tag":263,"props":837,"children":838},{"style":282},[839],{"type":273,"value":840},"    location: ",{"type":252,"tag":263,"props":842,"children":843},{"style":293},[844],{"type":273,"value":845},"\"footer\"",{"type":252,"tag":263,"props":847,"children":848},{"style":282},[849],{"type":273,"value":850},", alignment: ",{"type":252,"tag":263,"props":852,"children":853},{"style":293},[854],{"type":273,"value":855},"\"center\"",{"type":252,"tag":263,"props":857,"children":858},{"style":282},[859],{"type":273,"value":860},", format: ",{"type":252,"tag":263,"props":862,"children":863},{"style":293},[864],{"type":273,"value":865},"\"decimal\"",{"type":252,"tag":263,"props":867,"children":868},{"style":282},[869],{"type":273,"value":870},", start: ",{"type":252,"tag":263,"props":872,"children":873},{"style":434},[874],{"type":273,"value":875},"1",{"type":252,"tag":263,"props":877,"children":878},{"style":282},[879],{"type":273,"value":880},", template: { kind: ",{"type":252,"tag":263,"props":882,"children":883},{"style":293},[884],{"type":273,"value":885},"\"plain\"",{"type":252,"tag":263,"props":887,"children":888},{"style":282},[889],{"type":273,"value":890}," },\n",{"type":252,"tag":263,"props":892,"children":894},{"class":265,"line":893},22,[895],{"type":252,"tag":263,"props":896,"children":897},{"style":282},[898],{"type":273,"value":899},"  });\n",{"type":252,"tag":263,"props":901,"children":903},{"class":265,"line":902},23,[904],{"type":252,"tag":263,"props":905,"children":906},{"style":282},[907],{"type":273,"value":524},{"type":252,"tag":263,"props":909,"children":911},{"class":265,"line":910},24,[912],{"type":252,"tag":263,"props":913,"children":914},{"emptyLinePlaceholder":238},[915],{"type":273,"value":349},{"type":252,"tag":263,"props":917,"children":919},{"class":265,"line":918},25,[920],{"type":252,"tag":263,"props":921,"children":922},{"style":307},[923],{"type":273,"value":924},"\u002F**\n",{"type":252,"tag":263,"props":926,"children":928},{"class":265,"line":927},26,[929],{"type":252,"tag":263,"props":930,"children":931},{"style":307},[932],{"type":273,"value":933}," * Changes one explicit section rather than a painted page fragment.\n",{"type":252,"tag":263,"props":935,"children":937},{"class":265,"line":936},27,[938,943,947,951],{"type":252,"tag":263,"props":939,"children":940},{"style":307},[941],{"type":273,"value":942}," * ",{"type":252,"tag":263,"props":944,"children":945},{"style":270},[946],{"type":273,"value":362},{"type":252,"tag":263,"props":948,"children":949},{"style":282},[950],{"type":273,"value":367},{"type":252,"tag":263,"props":952,"children":953},{"style":307},[954],{"type":273,"value":955}," - Mounted Word product.\n",{"type":252,"tag":263,"props":957,"children":959},{"class":265,"line":958},28,[960,964,968,973],{"type":252,"tag":263,"props":961,"children":962},{"style":307},[963],{"type":273,"value":942},{"type":252,"tag":263,"props":965,"children":966},{"style":270},[967],{"type":273,"value":362},{"type":252,"tag":263,"props":969,"children":970},{"style":282},[971],{"type":273,"value":972}," sectionPosition",{"type":252,"tag":263,"props":974,"children":975},{"style":307},[976],{"type":273,"value":977}," - Current document position immediately before a wordSection.\n",{"type":252,"tag":263,"props":979,"children":981},{"class":265,"line":980},29,[982,986,990],{"type":252,"tag":263,"props":983,"children":984},{"style":307},[985],{"type":273,"value":942},{"type":252,"tag":263,"props":987,"children":988},{"style":270},[989],{"type":273,"value":377},{"type":252,"tag":263,"props":991,"children":992},{"style":307},[993],{"type":273,"value":994}," Whether one-inch horizontal margins were accepted.\n",{"type":252,"tag":263,"props":996,"children":998},{"class":265,"line":997},30,[999],{"type":252,"tag":263,"props":1000,"children":1001},{"style":307},[1002],{"type":273,"value":1003}," *\u002F\n",{"type":252,"tag":263,"props":1005,"children":1007},{"class":265,"line":1006},31,[1008,1012,1016,1021,1025,1029,1033,1037,1042,1047,1051,1056,1060,1064,1068],{"type":252,"tag":263,"props":1009,"children":1010},{"style":270},[1011],{"type":273,"value":391},{"type":252,"tag":263,"props":1013,"children":1014},{"style":270},[1015],{"type":273,"value":396},{"type":252,"tag":263,"props":1017,"children":1018},{"style":399},[1019],{"type":273,"value":1020}," setOneInchMargins",{"type":252,"tag":263,"props":1022,"children":1023},{"style":282},[1024],{"type":273,"value":407},{"type":252,"tag":263,"props":1026,"children":1027},{"style":410},[1028],{"type":273,"value":160},{"type":252,"tag":263,"props":1030,"children":1031},{"style":270},[1032],{"type":273,"value":417},{"type":252,"tag":263,"props":1034,"children":1035},{"style":399},[1036],{"type":273,"value":422},{"type":252,"tag":263,"props":1038,"children":1039},{"style":282},[1040],{"type":273,"value":1041},", ",{"type":252,"tag":263,"props":1043,"children":1044},{"style":410},[1045],{"type":273,"value":1046},"sectionPosition",{"type":252,"tag":263,"props":1048,"children":1049},{"style":270},[1050],{"type":273,"value":417},{"type":252,"tag":263,"props":1052,"children":1053},{"style":434},[1054],{"type":273,"value":1055}," number",{"type":252,"tag":263,"props":1057,"children":1058},{"style":282},[1059],{"type":273,"value":427},{"type":252,"tag":263,"props":1061,"children":1062},{"style":270},[1063],{"type":273,"value":417},{"type":252,"tag":263,"props":1065,"children":1066},{"style":434},[1067],{"type":273,"value":437},{"type":252,"tag":263,"props":1069,"children":1070},{"style":282},[1071],{"type":273,"value":442},{"type":252,"tag":263,"props":1073,"children":1075},{"class":265,"line":1074},32,[1076,1080,1084,1088],{"type":252,"tag":263,"props":1077,"children":1078},{"style":270},[1079],{"type":273,"value":451},{"type":252,"tag":263,"props":1081,"children":1082},{"style":434},[1083],{"type":273,"value":456},{"type":252,"tag":263,"props":1085,"children":1086},{"style":270},[1087],{"type":273,"value":461},{"type":252,"tag":263,"props":1089,"children":1090},{"style":282},[1091],{"type":273,"value":466},{"type":252,"tag":263,"props":1093,"children":1095},{"class":265,"line":1094},33,[1096,1100,1104,1108,1112,1116,1121,1126,1131,1136,1140],{"type":252,"tag":263,"props":1097,"children":1098},{"style":270},[1099],{"type":273,"value":475},{"type":252,"tag":263,"props":1101,"children":1102},{"style":270},[1103],{"type":273,"value":480},{"type":252,"tag":263,"props":1105,"children":1106},{"style":282},[1107],{"type":273,"value":485},{"type":252,"tag":263,"props":1109,"children":1110},{"style":270},[1111],{"type":273,"value":490},{"type":252,"tag":263,"props":1113,"children":1114},{"style":282},[1115],{"type":273,"value":495},{"type":252,"tag":263,"props":1117,"children":1118},{"style":399},[1119],{"type":273,"value":1120},"setWordSectionMargins",{"type":252,"tag":263,"props":1122,"children":1123},{"style":282},[1124],{"type":273,"value":1125},"({ sectionPosition, leftTwips: ",{"type":252,"tag":263,"props":1127,"children":1128},{"style":434},[1129],{"type":273,"value":1130},"1440",{"type":252,"tag":263,"props":1132,"children":1133},{"style":282},[1134],{"type":273,"value":1135},", rightTwips: ",{"type":252,"tag":263,"props":1137,"children":1138},{"style":434},[1139],{"type":273,"value":1130},{"type":252,"tag":263,"props":1141,"children":1142},{"style":282},[1143],{"type":273,"value":515},{"type":252,"tag":263,"props":1145,"children":1147},{"class":265,"line":1146},34,[1148],{"type":252,"tag":263,"props":1149,"children":1150},{"style":282},[1151],{"type":273,"value":524},{"type":252,"tag":1153,"props":1154,"children":1155},"style",{},[1156],{"type":273,"value":1157},"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 .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 .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);}",1793045224631]