Zum Inhalt

.ReplaceText (.PdfDocument Objektmethode)

Beschreibung

Replaces every occurrence of OldText using a redaction-style overlay (the original text is covered and the new text drawn on top). This does not reflow surrounding text. Call Save afterwards to obtain the modified PDF.

Argumente

Name

Typ

Beschreibung

OldText

integer

the text to replace

NewText

integer

the replacement text (empty to only redact the original)

MatchCase

integer

(optional)

1 for case-sensitive search

0 otherwise (default 0)

MatchWholeWord

integer

(optional)

1 to match whole words only

0 otherwise (default 0)

Rückgabewert integer

number of occurrences replaced

Beispiel

xxx