[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcPdfDocument.ReplaceText

ReplaceText Method

ReplaceText(FindTextParams, string, OutputRange, Font, float?)

Replaces a specified text on all pages of the current document.

Note that the results may be affected by the current value of the RecognitionAlgorithm property.

Declaration
public void ReplaceText(FindTextParams findTextParams, string newText, OutputRange searchRange = null, Font font = null, float? fontSize = null)
Public Sub ReplaceText(findTextParams As FindTextParams, newText As String, Optional searchRange As OutputRange = Nothing, Optional font As Font = Nothing, Optional fontSize As Single? = Nothing)
Parameters
Type Name Description
FindTextParams findTextParams

The text to search for.

string newText

The replacement text.

OutputRange searchRange

The search scope.

Font font

The font to use on newText, if null the current font will be used.

float? fontSize

The font size to use on newText, if null the current font size will be used.