Skip to main content

Class: ModifyCleanupHelper

Defined in: src/helper/modify-cleanup-helper.ts:9

Helper class for cleaning and clearing PowerPoint effects in XML structure

Constructors

Constructor

new ModifyCleanupHelper(): ModifyCleanupHelper

Returns

ModifyCleanupHelper

Methods

clearTextBold()

static clearTextBold(element): void

Defined in: src/helper/modify-cleanup-helper.ts:269

Parameters

element

Element

Returns

void


clearTextColor()

static clearTextColor(element, color?): void

Defined in: src/helper/modify-cleanup-helper.ts:283

Parameters

element

Element

color?

Color

Returns

void


clearTextItalicsToBold()

static clearTextItalicsToBold(element): void

Defined in: src/helper/modify-cleanup-helper.ts:250

Parameters

element

Element

Returns

void


clearTextSize()

static clearTextSize(element): void

Defined in: src/helper/modify-cleanup-helper.ts:276

Parameters

element

Element

Returns

void


clearTextUnderline()

static clearTextUnderline(element): void

Defined in: src/helper/modify-cleanup-helper.ts:262

Parameters

element

Element

Returns

void


clearTextUnderlineToBold()

static clearTextUnderlineToBold(element): void

Defined in: src/helper/modify-cleanup-helper.ts:238

Parameters

element

Element

Returns

void


remove3dEffects()

static remove3dEffects(element): void

Defined in: src/helper/modify-cleanup-helper.ts:332

Parameters

element

Element

Returns

void


removeBackground()

static removeBackground(element): void

Defined in: src/helper/modify-cleanup-helper.ts:16

Removes background color and fill elements from a shape This removes both visible and hidden fill properties and sets explicit noFill

Parameters

element

Element

The XML element representing the shape

Returns

void


removeBorder()

static removeBorder(element): void

Defined in: src/helper/modify-cleanup-helper.ts:112

Removes border/outline from a shape This function removes the a:ln (line) element which defines the border properties

Parameters

element

Element

The XML element representing the shape

Returns

void


removeColorAdjustment()

static removeColorAdjustment(element): void

Defined in: src/helper/modify-cleanup-helper.ts:351

Parameters

element

Element

Returns

void


removeEffects()

static removeEffects(element): void

Defined in: src/helper/modify-cleanup-helper.ts:145

Removes unwanted visual effects from PowerPoint elements based on their type Preserves certain effects for drawings but removes distracting effects from photos

Parameters

element

Element

The XML element to clean up

Returns

void


removeExtLst()

static removeExtLst(element): void

Defined in: src/helper/modify-cleanup-helper.ts:233

Removes extension list (extLst) elements from PowerPoint shapes

The extLst (Extension List) element in OOXML contains application-specific extensions and future compatibility features that may not be supported across all Office versions. These extensions can include:

  • Custom drawing effects and transformations
  • Third-party add-in specific properties
  • Version-specific features that may cause rendering inconsistencies
  • Experimental or preview features

Removing extLst helps ensure cross-version compatibility and prevents rendering issues when the presentation is opened in different versions of PowerPoint or other OOXML-compatible applications.

Parameters

element

Element

The XML element containing extension lists to remove

Returns

void


removeFillEffects()

static removeFillEffects(element): void

Defined in: src/helper/modify-cleanup-helper.ts:319

Parameters

element

Element

Returns

void


removeShadowEffects()

static removeShadowEffects(element): void

Defined in: src/helper/modify-cleanup-helper.ts:338

Parameters

element

Element

Returns

void


removeShapeStyle()

static removeShapeStyle(element): void

Defined in: src/helper/modify-cleanup-helper.ts:58

Removes shape style but preserves fill color information by moving it to a standard fill element This converts the p:style reference colors to direct solidFill colors on the shape

Parameters

element

Element

The XML element representing the shape

Returns

void


removeTextEffects()

static removeTextEffects(element): void

Defined in: src/helper/modify-cleanup-helper.ts:198

Removes text formatting effects

Parameters

element

Element

The XML element containing text runs to clean up

Returns

void