Aspose::Pdf::Facades::PdfContentEditor::ReplaceText method

PdfContentEditor::ReplaceText(System::String, int32_t, System::String) method

Replaces text in the PDF file on the specified page.

bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(System::String srcString, int32_t thePage, System::String destString)
ParameterTypeDescription
srcStringSystem::StringThe sting to be replaced.
thePageint32_tPage number (0 for all pages)
destStringSystem::StringReplacing string.

ReturnValue

Returns true if replacement was made.

See Also

PdfContentEditor::ReplaceText(System::String, int32_t, System::String, System::SharedPtr<Aspose::Pdf::Text::TextState>) method

Replaces text in the PDF file on the specified page. TextState object (font family, color) can be specified to replaced text.

bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(System::String srcString, int32_t thePage, System::String destString, System::SharedPtr<Aspose::Pdf::Text::TextState> textState)
ParameterTypeDescription
srcStringSystem::StringThe string to be replaced.
thePageint32_tPage number (0 means “all pages”).
destStringSystem::StringThe replaced string.
textStateSystem::SharedPtr<Aspose::Pdf::Text::TextState>Text state (TextColor, Font etc).

ReturnValue

Returns true if replacement was made.

See Also

PdfContentEditor::ReplaceText(System::String, System::String) method

Replaces text in the PDF file.

bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(System::String srcString, System::String destString)
ParameterTypeDescription
srcStringSystem::StringThe string to be replaced.
destStringSystem::StringReplacing string.

ReturnValue

Returns true if replacement was made.

See Also

PdfContentEditor::ReplaceText(System::String, System::String, int32_t) method

Replaces text in the PDF file and sets font size.

bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(System::String srcString, System::String destString, int32_t fontSize)
ParameterTypeDescription
srcStringSystem::StringString to be replaced.
destStringSystem::StringReplacing string.
fontSizeint32_tFont size.

ReturnValue

Returns true if replacement was made.

See Also

PdfContentEditor::ReplaceText(System::String, System::String, System::SharedPtr<Aspose::Pdf::Text::TextState>) method

Replaces text in the PDF file using specified TextState object.

bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(System::String srcString, System::String destString, System::SharedPtr<Aspose::Pdf::Text::TextState> textState)
ParameterTypeDescription
srcStringSystem::StringString to be replaced
destStringSystem::StringReplacing string
textStateSystem::SharedPtr<Aspose::Pdf::Text::TextState>Text state (TextColor, Font etc)

ReturnValue

Returns true if replacement was made.

See Also