PdfTextReplacer
ReplaceText Method
|
Replaces the first target text in the page.
Namespace:
Spire.Pdf.Texts
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public int ReplaceText(
string oldText,
string newText
)
Public Function ReplaceText (
oldText As String,
newText As String
) As Integer
public:
int ReplaceText(
String^ oldText,
String^ newText
)
member ReplaceText :
oldText : string *
newText : string -> int
Parameters
-
oldText
-
Type:
System
String
The old text.
-
newText
-
Type:
System
String
The new text.
Return Value
Type:
Int32
Number of texts replaced.
See Also