[{"data":1,"prerenderedAt":1377},["ShallowReactive",2],{"navigation_docs_en":3,"-en-pptx-patch":288,"-en-pptx-patch-surround":1372},[4,23,57,87,163,240],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"Getting Started","i-lucide-rocket","\u002Fen\u002Fgetting-started","en\u002F01.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"Introduction","\u002Fen\u002Fgetting-started\u002Fintroduction","en\u002F01.getting-started\u002F01.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fen\u002Fgetting-started\u002Finstallation","en\u002F01.getting-started\u002F02.installation",{"title":19,"path":20,"stem":21},"AI Integration","\u002Fen\u002Fgetting-started\u002Fai-integration","en\u002F01.getting-started\u002F03.ai-integration",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"CORE","i-lucide-box","\u002Fen\u002Fcore","en\u002F02.core",[29,33,37,41,45,49,53],{"title":30,"path":31,"stem":32},"@office-open\u002Fcore","\u002Fen\u002Fcore\u002Foverview","en\u002F02.core\u002F01.overview",{"title":34,"path":35,"stem":36},"XML Components","\u002Fen\u002Fcore\u002Fxml-components","en\u002F02.core\u002F02.xml-components",{"title":38,"path":39,"stem":40},"Values and Validation","\u002Fen\u002Fcore\u002Fvalues","en\u002F02.core\u002F03.values",{"title":42,"path":43,"stem":44},"Unit Converters","\u002Fen\u002Fcore\u002Fconverters","en\u002F02.core\u002F04.converters",{"title":46,"path":47,"stem":48},"Formatter","\u002Fen\u002Fcore\u002Fformatter","en\u002F02.core\u002F05.formatter",{"title":50,"path":51,"stem":52},"Charts","\u002Fen\u002Fcore\u002Fcharts","en\u002F02.core\u002F06.charts",{"title":54,"path":55,"stem":56},"Parser","\u002Fen\u002Fcore\u002Fparser","en\u002F02.core\u002F07.parser",{"title":58,"icon":59,"path":60,"stem":61,"children":62,"page":22},"XML","i-lucide-code-xml","\u002Fen\u002Fxml","en\u002F03.xml",[63,67,71,75,79,83],{"title":64,"path":65,"stem":66},"@office-open\u002Fxml","\u002Fen\u002Fxml\u002Foverview","en\u002F03.xml\u002F01.overview",{"title":68,"path":69,"stem":70},"Parsing","\u002Fen\u002Fxml\u002Fparsing","en\u002F03.xml\u002F02.parsing",{"title":72,"path":73,"stem":74},"Serialization","\u002Fen\u002Fxml\u002Fserialization","en\u002F03.xml\u002F03.serialization",{"title":76,"path":77,"stem":78},"Query Utilities","\u002Fen\u002Fxml\u002Fquery-utilities","en\u002F03.xml\u002F04.query-utilities",{"title":80,"path":81,"stem":82},"XML Escape","\u002Fen\u002Fxml\u002Fescape","en\u002F03.xml\u002F05.escape",{"title":84,"path":85,"stem":86},"Type Reference","\u002Fen\u002Fxml\u002Ftypes","en\u002F03.xml\u002F06.types",{"title":88,"icon":89,"path":90,"stem":91,"children":92,"page":22},"DOCX","i-lucide-file-text","\u002Fen\u002Fdocx","en\u002F04.docx",[93,97,101,105,109,113,116,120,124,128,132,136,140,144,148,152,156,159],{"title":94,"path":95,"stem":96},"@office-open\u002Fdocx","\u002Fen\u002Fdocx\u002Foverview","en\u002F04.docx\u002F01.overview",{"title":98,"path":99,"stem":100},"Quick Start","\u002Fen\u002Fdocx\u002Fquickstart","en\u002F04.docx\u002F02.quickstart",{"title":102,"path":103,"stem":104},"Text and Paragraphs","\u002Fen\u002Fdocx\u002Ftext-and-paragraphs","en\u002F04.docx\u002F03.text-and-paragraphs",{"title":106,"path":107,"stem":108},"Tables","\u002Fen\u002Fdocx\u002Ftables","en\u002F04.docx\u002F04.tables",{"title":110,"path":111,"stem":112},"Images","\u002Fen\u002Fdocx\u002Fimages","en\u002F04.docx\u002F05.images",{"title":50,"path":114,"stem":115},"\u002Fen\u002Fdocx\u002Fcharts","en\u002F04.docx\u002F06.charts",{"title":117,"path":118,"stem":119},"SmartArt","\u002Fen\u002Fdocx\u002Fsmartart","en\u002F04.docx\u002F07.smartart",{"title":121,"path":122,"stem":123},"Media","\u002Fen\u002Fdocx\u002Fmedia","en\u002F04.docx\u002F08.media",{"title":125,"path":126,"stem":127},"Links","\u002Fen\u002Fdocx\u002Flinks","en\u002F04.docx\u002F09.links",{"title":129,"path":130,"stem":131},"Headers and Footers","\u002Fen\u002Fdocx\u002Fheaders-and-footers","en\u002F04.docx\u002F10.headers-and-footers",{"title":133,"path":134,"stem":135},"Equations and Symbols","\u002Fen\u002Fdocx\u002Fequations-and-symbols","en\u002F04.docx\u002F11.equations-and-symbols",{"title":137,"path":138,"stem":139},"Styles and Themes","\u002Fen\u002Fdocx\u002Fstyles-and-themes","en\u002F04.docx\u002F12.styles-and-themes",{"title":141,"path":142,"stem":143},"Page Layout","\u002Fen\u002Fdocx\u002Fpage-layout","en\u002F04.docx\u002F13.page-layout",{"title":145,"path":146,"stem":147},"References","\u002Fen\u002Fdocx\u002Freferences","en\u002F04.docx\u002F14.references",{"title":149,"path":150,"stem":151},"Comments and Revisions","\u002Fen\u002Fdocx\u002Fcomments-and-revisions","en\u002F04.docx\u002F15.comments-and-revisions",{"title":153,"path":154,"stem":155},"Export","\u002Fen\u002Fdocx\u002Fexport","en\u002F04.docx\u002F16.export",{"title":68,"path":157,"stem":158},"\u002Fen\u002Fdocx\u002Fparsing","en\u002F04.docx\u002F17.parsing",{"title":160,"path":161,"stem":162},"Patching","\u002Fen\u002Fdocx\u002Fpatch","en\u002F04.docx\u002F18.patch",{"title":164,"icon":165,"path":166,"stem":167,"children":168,"page":22},"PPTX","i-lucide-presentation","\u002Fen\u002Fpptx","en\u002F05.pptx",[169,173,176,180,183,186,189,192,195,198,202,205,208,212,215,219,223,227,231,234,237],{"title":170,"path":171,"stem":172},"@office-open\u002Fpptx","\u002Fen\u002Fpptx\u002Foverview","en\u002F05.pptx\u002F01.overview",{"title":98,"path":174,"stem":175},"\u002Fen\u002Fpptx\u002Fquickstart","en\u002F05.pptx\u002F02.quickstart",{"title":177,"path":178,"stem":179},"Shapes and Text","\u002Fen\u002Fpptx\u002Fshapes-and-text","en\u002F05.pptx\u002F03.shapes-and-text",{"title":106,"path":181,"stem":182},"\u002Fen\u002Fpptx\u002Ftables","en\u002F05.pptx\u002F04.tables",{"title":110,"path":184,"stem":185},"\u002Fen\u002Fpptx\u002Fimages","en\u002F05.pptx\u002F05.images",{"title":50,"path":187,"stem":188},"\u002Fen\u002Fpptx\u002Fcharts","en\u002F05.pptx\u002F06.charts",{"title":117,"path":190,"stem":191},"\u002Fen\u002Fpptx\u002Fsmartart","en\u002F05.pptx\u002F07.smartart",{"title":121,"path":193,"stem":194},"\u002Fen\u002Fpptx\u002Fmedia","en\u002F05.pptx\u002F08.media",{"title":125,"path":196,"stem":197},"\u002Fen\u002Fpptx\u002Flinks","en\u002F05.pptx\u002F09.links",{"title":199,"path":200,"stem":201},"Lines and Connectors","\u002Fen\u002Fpptx\u002Flines-and-connectors","en\u002F05.pptx\u002F10.lines-and-connectors",{"title":129,"path":203,"stem":204},"\u002Fen\u002Fpptx\u002Fheaders-and-footers","en\u002F05.pptx\u002F11.headers-and-footers",{"title":133,"path":206,"stem":207},"\u002Fen\u002Fpptx\u002Fequations-and-symbols","en\u002F05.pptx\u002F12.equations-and-symbols",{"title":209,"path":210,"stem":211},"Slide Layout","\u002Fen\u002Fpptx\u002Fslide-layout","en\u002F05.pptx\u002F13.slide-layout",{"title":137,"path":213,"stem":214},"\u002Fen\u002Fpptx\u002Fstyles-and-themes","en\u002F05.pptx\u002F14.styles-and-themes",{"title":216,"path":217,"stem":218},"Effects and Fills","\u002Fen\u002Fpptx\u002Feffects-and-fills","en\u002F05.pptx\u002F15.effects-and-fills",{"title":220,"path":221,"stem":222},"Transitions","\u002Fen\u002Fpptx\u002Ftransitions","en\u002F05.pptx\u002F16.transitions",{"title":224,"path":225,"stem":226},"Animations","\u002Fen\u002Fpptx\u002Fanimations","en\u002F05.pptx\u002F17.animations",{"title":228,"path":229,"stem":230},"Comments","\u002Fen\u002Fpptx\u002Fcomments","en\u002F05.pptx\u002F18.comments",{"title":153,"path":232,"stem":233},"\u002Fen\u002Fpptx\u002Fexport","en\u002F05.pptx\u002F19.export",{"title":68,"path":235,"stem":236},"\u002Fen\u002Fpptx\u002Fparsing","en\u002F05.pptx\u002F20.parsing",{"title":160,"path":238,"stem":239},"\u002Fen\u002Fpptx\u002Fpatch","en\u002F05.pptx\u002F21.patch",{"title":241,"icon":242,"path":243,"stem":244,"children":245,"page":22},"XLSX","i-lucide-table-2","\u002Fen\u002Fxlsx","en\u002F06.xlsx",[246,250,253,257,261,265,269,272,275,279,282,285],{"title":247,"path":248,"stem":249},"@office-open\u002Fxlsx","\u002Fen\u002Fxlsx\u002Foverview","en\u002F06.xlsx\u002F01.overview",{"title":98,"path":251,"stem":252},"\u002Fen\u002Fxlsx\u002Fquickstart","en\u002F06.xlsx\u002F02.quickstart",{"title":254,"path":255,"stem":256},"Cells & Data","\u002Fen\u002Fxlsx\u002Fcells","en\u002F06.xlsx\u002F03.cells",{"title":258,"path":259,"stem":260},"Styles","\u002Fen\u002Fxlsx\u002Fstyles","en\u002F06.xlsx\u002F04.styles",{"title":262,"path":263,"stem":264},"Merge, Columns & Rows","\u002Fen\u002Fxlsx\u002Fmerge-col-row","en\u002F06.xlsx\u002F05.merge-col-row",{"title":266,"path":267,"stem":268},"Freeze Panes & Auto Filter","\u002Fen\u002Fxlsx\u002Ffreeze-filter","en\u002F06.xlsx\u002F06.freeze-filter",{"title":110,"path":270,"stem":271},"\u002Fen\u002Fxlsx\u002Fimages","en\u002F06.xlsx\u002F07.images",{"title":50,"path":273,"stem":274},"\u002Fen\u002Fxlsx\u002Fcharts","en\u002F06.xlsx\u002F08.charts",{"title":276,"path":277,"stem":278},"Data Validation","\u002Fen\u002Fxlsx\u002Fvalidation","en\u002F06.xlsx\u002F09.validation",{"title":153,"path":280,"stem":281},"\u002Fen\u002Fxlsx\u002Fexport","en\u002F06.xlsx\u002F10.export",{"title":68,"path":283,"stem":284},"\u002Fen\u002Fxlsx\u002Fparsing","en\u002F06.xlsx\u002F11.parsing",{"title":160,"path":286,"stem":287},"\u002Fen\u002Fxlsx\u002Fpatch","en\u002F06.xlsx\u002F12.patch",{"id":289,"title":160,"body":290,"description":1366,"extension":1367,"links":1368,"meta":1369,"navigation":410,"path":238,"seo":1370,"stem":239,"__hash__":1371},"docs_en\u002Fen\u002F05.pptx\u002F21.patch.md",{"type":291,"value":292,"toc":1359},"minimark",[293,306,311,317,899,903,933,936,1053,1057,1071,1211,1215,1323,1327,1355],[294,295,296,297,301,302,305],"p",{},"Patch an existing ",[298,299,300],"code",{},".pptx"," template by replacing ",[298,303,304],{},"{{placeholder}}"," tokens with new text runs.",[307,308,310],"h2",{"id":309},"patchpresentation","patchPresentation",[294,312,313,314,316],{},"Replaces placeholders in an existing ",[298,315,300],{}," file:",[318,319,324],"pre",{"className":320,"code":321,"language":322,"meta":323,"style":323},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { patchPresentation, PatchType, TextRun, Presentation, Packer } from \"@office-open\u002Fpptx\";\nimport { writeFileSync } from \"node:fs\";\n\n\u002F\u002F Create a template with placeholders\nconst templatePres = new Presentation({\n  title: \"Patch Demo\",\n  slides: [\n    {\n      children: [\n        {\n          shape: {\n            x: 80,\n            y: 120,\n            width: 720,\n            height: 80,\n            textBody: {\n              children: [{ children: [{ text: \"Hello {{name}}!\" }] }],\n            },\n          },\n        },\n      ],\n    },\n  ],\n});\n\nconst templateBuffer = await Packer.toBuffer(templatePres);\n\n\u002F\u002F Patch the template\nconst result = await patchPresentation({\n  outputType: \"nodebuffer\",\n  data: templateBuffer,\n  patches: {\n    name: {\n      type: PatchType.PARAGRAPH,\n      children: [new TextRun({ text: \"World\", bold: true, fontSize: 24 })],\n    },\n  },\n});\n\nwriteFileSync(\"output.pptx\", result);\n","ts","",[298,325,326,382,405,412,419,444,464,475,481,491,497,508,522,535,548,560,570,618,624,630,636,644,650,658,668,673,699,704,710,728,745,758,768,778,795,852,857,863,872,877],{"__ignoreMap":323},[327,328,331,335,339,343,346,349,351,354,356,359,361,364,367,370,373,376,379],"span",{"class":329,"line":330},"line",1,[327,332,334],{"class":333},"s7zQu","import",[327,336,338],{"class":337},"sMK4o"," {",[327,340,342],{"class":341},"sTEyZ"," patchPresentation",[327,344,345],{"class":337},",",[327,347,348],{"class":341}," PatchType",[327,350,345],{"class":337},[327,352,353],{"class":341}," TextRun",[327,355,345],{"class":337},[327,357,358],{"class":341}," Presentation",[327,360,345],{"class":337},[327,362,363],{"class":341}," Packer",[327,365,366],{"class":337}," }",[327,368,369],{"class":333}," from",[327,371,372],{"class":337}," \"",[327,374,170],{"class":375},"sfazB",[327,377,378],{"class":337},"\"",[327,380,381],{"class":337},";\n",[327,383,385,387,389,392,394,396,398,401,403],{"class":329,"line":384},2,[327,386,334],{"class":333},[327,388,338],{"class":337},[327,390,391],{"class":341}," writeFileSync",[327,393,366],{"class":337},[327,395,369],{"class":333},[327,397,372],{"class":337},[327,399,400],{"class":375},"node:fs",[327,402,378],{"class":337},[327,404,381],{"class":337},[327,406,408],{"class":329,"line":407},3,[327,409,411],{"emptyLinePlaceholder":410},true,"\n",[327,413,415],{"class":329,"line":414},4,[327,416,418],{"class":417},"sHwdD","\u002F\u002F Create a template with placeholders\n",[327,420,422,426,429,432,435,438,441],{"class":329,"line":421},5,[327,423,425],{"class":424},"spNyl","const",[327,427,428],{"class":341}," templatePres ",[327,430,431],{"class":337},"=",[327,433,434],{"class":337}," new",[327,436,358],{"class":437},"s2Zo4",[327,439,440],{"class":341},"(",[327,442,443],{"class":337},"{\n",[327,445,447,451,454,456,459,461],{"class":329,"line":446},6,[327,448,450],{"class":449},"swJcz","  title",[327,452,453],{"class":337},":",[327,455,372],{"class":337},[327,457,458],{"class":375},"Patch Demo",[327,460,378],{"class":337},[327,462,463],{"class":337},",\n",[327,465,467,470,472],{"class":329,"line":466},7,[327,468,469],{"class":449},"  slides",[327,471,453],{"class":337},[327,473,474],{"class":341}," [\n",[327,476,478],{"class":329,"line":477},8,[327,479,480],{"class":337},"    {\n",[327,482,484,487,489],{"class":329,"line":483},9,[327,485,486],{"class":449},"      children",[327,488,453],{"class":337},[327,490,474],{"class":341},[327,492,494],{"class":329,"line":493},10,[327,495,496],{"class":337},"        {\n",[327,498,500,503,505],{"class":329,"line":499},11,[327,501,502],{"class":449},"          shape",[327,504,453],{"class":337},[327,506,507],{"class":337}," {\n",[327,509,511,514,516,520],{"class":329,"line":510},12,[327,512,513],{"class":449},"            x",[327,515,453],{"class":337},[327,517,519],{"class":518},"sbssI"," 80",[327,521,463],{"class":337},[327,523,525,528,530,533],{"class":329,"line":524},13,[327,526,527],{"class":449},"            y",[327,529,453],{"class":337},[327,531,532],{"class":518}," 120",[327,534,463],{"class":337},[327,536,538,541,543,546],{"class":329,"line":537},14,[327,539,540],{"class":449},"            width",[327,542,453],{"class":337},[327,544,545],{"class":518}," 720",[327,547,463],{"class":337},[327,549,551,554,556,558],{"class":329,"line":550},15,[327,552,553],{"class":449},"            height",[327,555,453],{"class":337},[327,557,519],{"class":518},[327,559,463],{"class":337},[327,561,563,566,568],{"class":329,"line":562},16,[327,564,565],{"class":449},"            textBody",[327,567,453],{"class":337},[327,569,507],{"class":337},[327,571,573,576,578,581,584,587,589,591,593,596,598,600,603,605,607,610,613,616],{"class":329,"line":572},17,[327,574,575],{"class":449},"              children",[327,577,453],{"class":337},[327,579,580],{"class":341}," [",[327,582,583],{"class":337},"{",[327,585,586],{"class":449}," children",[327,588,453],{"class":337},[327,590,580],{"class":341},[327,592,583],{"class":337},[327,594,595],{"class":449}," text",[327,597,453],{"class":337},[327,599,372],{"class":337},[327,601,602],{"class":375},"Hello {{name}}!",[327,604,378],{"class":337},[327,606,366],{"class":337},[327,608,609],{"class":341},"] ",[327,611,612],{"class":337},"}",[327,614,615],{"class":341},"]",[327,617,463],{"class":337},[327,619,621],{"class":329,"line":620},18,[327,622,623],{"class":337},"            },\n",[327,625,627],{"class":329,"line":626},19,[327,628,629],{"class":337},"          },\n",[327,631,633],{"class":329,"line":632},20,[327,634,635],{"class":337},"        },\n",[327,637,639,642],{"class":329,"line":638},21,[327,640,641],{"class":341},"      ]",[327,643,463],{"class":337},[327,645,647],{"class":329,"line":646},22,[327,648,649],{"class":337},"    },\n",[327,651,653,656],{"class":329,"line":652},23,[327,654,655],{"class":341},"  ]",[327,657,463],{"class":337},[327,659,661,663,666],{"class":329,"line":660},24,[327,662,612],{"class":337},[327,664,665],{"class":341},")",[327,667,381],{"class":337},[327,669,671],{"class":329,"line":670},25,[327,672,411],{"emptyLinePlaceholder":410},[327,674,676,678,681,683,686,688,691,694,697],{"class":329,"line":675},26,[327,677,425],{"class":424},[327,679,680],{"class":341}," templateBuffer ",[327,682,431],{"class":337},[327,684,685],{"class":333}," await",[327,687,363],{"class":341},[327,689,690],{"class":337},".",[327,692,693],{"class":437},"toBuffer",[327,695,696],{"class":341},"(templatePres)",[327,698,381],{"class":337},[327,700,702],{"class":329,"line":701},27,[327,703,411],{"emptyLinePlaceholder":410},[327,705,707],{"class":329,"line":706},28,[327,708,709],{"class":417},"\u002F\u002F Patch the template\n",[327,711,713,715,718,720,722,724,726],{"class":329,"line":712},29,[327,714,425],{"class":424},[327,716,717],{"class":341}," result ",[327,719,431],{"class":337},[327,721,685],{"class":333},[327,723,342],{"class":437},[327,725,440],{"class":341},[327,727,443],{"class":337},[327,729,731,734,736,738,741,743],{"class":329,"line":730},30,[327,732,733],{"class":449},"  outputType",[327,735,453],{"class":337},[327,737,372],{"class":337},[327,739,740],{"class":375},"nodebuffer",[327,742,378],{"class":337},[327,744,463],{"class":337},[327,746,748,751,753,756],{"class":329,"line":747},31,[327,749,750],{"class":449},"  data",[327,752,453],{"class":337},[327,754,755],{"class":341}," templateBuffer",[327,757,463],{"class":337},[327,759,761,764,766],{"class":329,"line":760},32,[327,762,763],{"class":449},"  patches",[327,765,453],{"class":337},[327,767,507],{"class":337},[327,769,771,774,776],{"class":329,"line":770},33,[327,772,773],{"class":449},"    name",[327,775,453],{"class":337},[327,777,507],{"class":337},[327,779,781,784,786,788,790,793],{"class":329,"line":780},34,[327,782,783],{"class":449},"      type",[327,785,453],{"class":337},[327,787,348],{"class":341},[327,789,690],{"class":337},[327,791,792],{"class":341},"PARAGRAPH",[327,794,463],{"class":337},[327,796,798,800,802,804,807,809,811,813,815,817,819,822,824,826,829,831,835,837,840,842,845,847,850],{"class":329,"line":797},35,[327,799,486],{"class":449},[327,801,453],{"class":337},[327,803,580],{"class":341},[327,805,806],{"class":337},"new",[327,808,353],{"class":437},[327,810,440],{"class":341},[327,812,583],{"class":337},[327,814,595],{"class":449},[327,816,453],{"class":337},[327,818,372],{"class":337},[327,820,821],{"class":375},"World",[327,823,378],{"class":337},[327,825,345],{"class":337},[327,827,828],{"class":449}," bold",[327,830,453],{"class":337},[327,832,834],{"class":833},"sfNiH"," true",[327,836,345],{"class":337},[327,838,839],{"class":449}," fontSize",[327,841,453],{"class":337},[327,843,844],{"class":518}," 24",[327,846,366],{"class":337},[327,848,849],{"class":341},")]",[327,851,463],{"class":337},[327,853,855],{"class":329,"line":854},36,[327,856,649],{"class":337},[327,858,860],{"class":329,"line":859},37,[327,861,862],{"class":337},"  },\n",[327,864,866,868,870],{"class":329,"line":865},38,[327,867,612],{"class":337},[327,869,665],{"class":341},[327,871,381],{"class":337},[327,873,875],{"class":329,"line":874},39,[327,876,411],{"emptyLinePlaceholder":410},[327,878,880,883,885,887,890,892,894,897],{"class":329,"line":879},40,[327,881,882],{"class":437},"writeFileSync",[327,884,440],{"class":341},[327,886,378],{"class":337},[327,888,889],{"class":375},"output.pptx",[327,891,378],{"class":337},[327,893,345],{"class":337},[327,895,896],{"class":341}," result)",[327,898,381],{"class":337},[307,900,902],{"id":901},"patchtype","PatchType",[904,905,906,919],"table",{},[907,908,909],"thead",{},[910,911,912,916],"tr",{},[913,914,915],"th",{},"Type",[913,917,918],{},"Description",[920,921,922],"tbody",{},[910,923,924,930],{},[925,926,927],"td",{},[298,928,929],{},"PatchType.PARAGRAPH",[925,931,932],{},"Replace the placeholder with inline run-level content",[294,934,935],{},"The patch replaces placeholder text inside a paragraph with new runs. The original run's formatting properties (font, size, color, bold, etc.) are preserved by default.",[318,937,939],{"className":320,"code":938,"language":322,"meta":323,"style":323},"patches: {\n  title: {\n    type: PatchType.PARAGRAPH,\n    children: [\n      new TextRun({ text: \"Hello \", bold: true }),\n      new TextRun(\"World\"),\n    ],\n  },\n}\n",[298,940,941,951,959,974,983,1019,1037,1044,1048],{"__ignoreMap":323},[327,942,943,947,949],{"class":329,"line":330},[327,944,946],{"class":945},"sBMFI","patches",[327,948,453],{"class":337},[327,950,507],{"class":337},[327,952,953,955,957],{"class":329,"line":384},[327,954,450],{"class":945},[327,956,453],{"class":337},[327,958,507],{"class":337},[327,960,961,964,966,968,970,972],{"class":329,"line":407},[327,962,963],{"class":945},"    type",[327,965,453],{"class":337},[327,967,348],{"class":341},[327,969,690],{"class":337},[327,971,792],{"class":341},[327,973,463],{"class":337},[327,975,976,979,981],{"class":329,"line":414},[327,977,978],{"class":945},"    children",[327,980,453],{"class":337},[327,982,474],{"class":449},[327,984,985,988,990,992,994,996,998,1000,1003,1005,1007,1009,1011,1013,1015,1017],{"class":329,"line":421},[327,986,987],{"class":337},"      new",[327,989,353],{"class":437},[327,991,440],{"class":449},[327,993,583],{"class":337},[327,995,595],{"class":449},[327,997,453],{"class":337},[327,999,372],{"class":337},[327,1001,1002],{"class":375},"Hello ",[327,1004,378],{"class":337},[327,1006,345],{"class":337},[327,1008,828],{"class":449},[327,1010,453],{"class":337},[327,1012,834],{"class":833},[327,1014,366],{"class":337},[327,1016,665],{"class":449},[327,1018,463],{"class":337},[327,1020,1021,1023,1025,1027,1029,1031,1033,1035],{"class":329,"line":446},[327,1022,987],{"class":337},[327,1024,353],{"class":437},[327,1026,440],{"class":449},[327,1028,378],{"class":337},[327,1030,821],{"class":375},[327,1032,378],{"class":337},[327,1034,665],{"class":449},[327,1036,463],{"class":337},[327,1038,1039,1042],{"class":329,"line":466},[327,1040,1041],{"class":449},"    ]",[327,1043,463],{"class":337},[327,1045,1046],{"class":329,"line":477},[327,1047,862],{"class":337},[327,1049,1050],{"class":329,"line":483},[327,1051,1052],{"class":337},"}\n",[307,1054,1056],{"id":1055},"custom-delimiters","Custom Delimiters",[294,1058,1059,1060,1063,1064,1067,1068,453],{},"Default delimiters are ",[298,1061,1062],{},"{{"," and ",[298,1065,1066],{},"}}",". Change them with ",[298,1069,1070],{},"placeholderDelimiters",[318,1072,1074],{"className":320,"code":1073,"language":322,"meta":323,"style":323},"await patchPresentation({\n  outputType: \"nodebuffer\",\n  data: templateBuffer,\n  patches: { name: { type: PatchType.PARAGRAPH, children: [new TextRun(\"John\")] } },\n  placeholderDelimiters: { start: \"\u003C\u003C\", end: \">>\" },\n});\n",[298,1075,1076,1087,1101,1111,1166,1203],{"__ignoreMap":323},[327,1077,1078,1081,1083,1085],{"class":329,"line":330},[327,1079,1080],{"class":333},"await",[327,1082,342],{"class":437},[327,1084,440],{"class":341},[327,1086,443],{"class":337},[327,1088,1089,1091,1093,1095,1097,1099],{"class":329,"line":384},[327,1090,733],{"class":449},[327,1092,453],{"class":337},[327,1094,372],{"class":337},[327,1096,740],{"class":375},[327,1098,378],{"class":337},[327,1100,463],{"class":337},[327,1102,1103,1105,1107,1109],{"class":329,"line":407},[327,1104,750],{"class":449},[327,1106,453],{"class":337},[327,1108,755],{"class":341},[327,1110,463],{"class":337},[327,1112,1113,1115,1117,1119,1122,1124,1126,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1156,1158,1161,1163],{"class":329,"line":414},[327,1114,763],{"class":449},[327,1116,453],{"class":337},[327,1118,338],{"class":337},[327,1120,1121],{"class":449}," name",[327,1123,453],{"class":337},[327,1125,338],{"class":337},[327,1127,1128],{"class":449}," type",[327,1130,453],{"class":337},[327,1132,348],{"class":341},[327,1134,690],{"class":337},[327,1136,792],{"class":341},[327,1138,345],{"class":337},[327,1140,586],{"class":449},[327,1142,453],{"class":337},[327,1144,580],{"class":341},[327,1146,806],{"class":337},[327,1148,353],{"class":437},[327,1150,440],{"class":341},[327,1152,378],{"class":337},[327,1154,1155],{"class":375},"John",[327,1157,378],{"class":337},[327,1159,1160],{"class":341},")] ",[327,1162,612],{"class":337},[327,1164,1165],{"class":337}," },\n",[327,1167,1168,1171,1173,1175,1178,1180,1182,1185,1187,1189,1192,1194,1196,1199,1201],{"class":329,"line":421},[327,1169,1170],{"class":449},"  placeholderDelimiters",[327,1172,453],{"class":337},[327,1174,338],{"class":337},[327,1176,1177],{"class":449}," start",[327,1179,453],{"class":337},[327,1181,372],{"class":337},[327,1183,1184],{"class":375},"\u003C\u003C",[327,1186,378],{"class":337},[327,1188,345],{"class":337},[327,1190,1191],{"class":449}," end",[327,1193,453],{"class":337},[327,1195,372],{"class":337},[327,1197,1198],{"class":375},">>",[327,1200,378],{"class":337},[327,1202,1165],{"class":337},[327,1204,1205,1207,1209],{"class":329,"line":446},[327,1206,612],{"class":337},[327,1208,665],{"class":341},[327,1210,381],{"class":337},[307,1212,1214],{"id":1213},"options","Options",[904,1216,1217,1231],{},[907,1218,1219],{},[910,1220,1221,1224,1226,1229],{},[913,1222,1223],{},"Option",[913,1225,915],{},[913,1227,1228],{},"Default",[913,1230,918],{},[920,1232,1233,1251,1268,1284,1304],{},[910,1234,1235,1240,1245,1248],{},[925,1236,1237],{},[298,1238,1239],{},"outputType",[925,1241,1242],{},[298,1243,1244],{},"string",[925,1246,1247],{},"—",[925,1249,1250],{},"Output format (see Export page)",[910,1252,1253,1258,1263,1265],{},[925,1254,1255],{},[298,1256,1257],{},"data",[925,1259,1260],{},[298,1261,1262],{},"Buffer | Uint8Array | ...",[925,1264,1247],{},[925,1266,1267],{},"Input .pptx file data",[910,1269,1270,1274,1279,1281],{},[925,1271,1272],{},[298,1273,946],{},[925,1275,1276],{},[298,1277,1278],{},"Record\u003Cstring, IPatch>",[925,1280,1247],{},[925,1282,1283],{},"Map of placeholder name to patch content",[910,1285,1286,1291,1296,1301],{},[925,1287,1288],{},[298,1289,1290],{},"keepOriginalStyles",[925,1292,1293],{},[298,1294,1295],{},"boolean",[925,1297,1298],{},[298,1299,1300],{},"true",[925,1302,1303],{},"Preserve original run formatting properties",[910,1305,1306,1310,1315,1320],{},[925,1307,1308],{},[298,1309,1070],{},[925,1311,1312],{},[298,1313,1314],{},"{ start: string, end: string}",[925,1316,1317],{},[298,1318,1319],{},"{ {{, }} }",[925,1321,1322],{},"Custom placeholder delimiters",[307,1324,1326],{"id":1325},"tips","Tips",[1328,1329,1330,1334,1342,1345],"ul",{},[1331,1332,1333],"li",{},"Placeholders span across split runs in PowerPoint — the library handles this automatically.",[1331,1335,1336,1338,1339,1341],{},[298,1337,1290],{}," defaults to ",[298,1340,1300],{},", preserving the template's run formatting (font, size, color, etc.).",[1331,1343,1344],{},"All slides are processed — the same placeholder on multiple slides will be replaced everywhere.",[1331,1346,1347,1348,1351,1352,1354],{},"Image media files in ",[298,1349,1350],{},"ppt\u002Fmedia\u002F"," can be replaced by including ",[298,1353,1257],{}," (Uint8Array) in the patch.",[1356,1357,1358],"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 .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":323,"searchDepth":384,"depth":384,"links":1360},[1361,1362,1363,1364,1365],{"id":309,"depth":384,"text":310},{"id":901,"depth":384,"text":902},{"id":1055,"depth":384,"text":1056},{"id":1213,"depth":384,"text":1214},{"id":1325,"depth":384,"text":1326},"Modify existing .pptx files by replacing placeholders with new content","md",null,{},{"title":160,"description":1366},"7MWqeOznUad6xCf3nV7JUtzH-CFEtq57-nfVQhulcdQ",[1373,1375],{"title":68,"path":235,"stem":236,"description":1374,"children":-1},"Parse existing .pptx files with parsePresentation and parsePptx",{"title":247,"path":248,"stem":249,"description":1376,"children":-1},"Generate .xlsx spreadsheets with a declarative TypeScript API",1780139794096]