Aspose::Pdf::Facades::PdfContentEditor::ReplaceText method
Contents
[
Hide
]PdfContentEditor::ReplaceText(const System::String&, const System::String&) method
Replaces text in the PDF file.
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(const System::String &srcString, const System::String &destString)
| Parameter | Type | Description |
|---|---|---|
| srcString | const System::String& | The string to be replaced. |
| destString | const System::String& | Replacing string. |
ReturnValue
Returns true if replacement was made.
See Also
- Class String
- Class PdfContentEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfContentEditor::ReplaceText(const System::String&, const System::String&, const System::SharedPtr<Text::TextState>&) method
Replaces text in the PDF file using specified TextState object.
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(const System::String &srcString, const System::String &destString, const System::SharedPtr<Text::TextState> &textState)
| Parameter | Type | Description |
|---|---|---|
| srcString | const System::String& | String to be replaced |
| destString | const System::String& | Replacing string |
| textState | const System::SharedPtr<Text::TextState>& | Text state (TextColor, Font etc) |
ReturnValue
Returns true if replacement was made.
See Also
- Class String
- Typedef SharedPtr
- Class TextState
- Class PdfContentEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfContentEditor::ReplaceText(const System::String&, const System::String&, int32_t) method
Replaces text in the PDF file and sets font size.
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(const System::String &srcString, const System::String &destString, int32_t fontSize)
| Parameter | Type | Description |
|---|---|---|
| srcString | const System::String& | String to be replaced. |
| destString | const System::String& | Replacing string. |
| fontSize | int32_t | Font size. |
ReturnValue
Returns true if replacement was made.
See Also
- Class String
- Class PdfContentEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfContentEditor::ReplaceText(const System::String&, int32_t, const System::String&) method
Replaces text in the PDF file on the specified page.
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(const System::String &srcString, int32_t thePage, const System::String &destString)
| Parameter | Type | Description |
|---|---|---|
| srcString | const System::String& | The sting to be replaced. |
| thePage | int32_t | Page number (0 for all pages) |
| destString | const System::String& | Replacing string. |
ReturnValue
Returns true if replacement was made.
See Also
- Class String
- Class PdfContentEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfContentEditor::ReplaceText(const System::String&, int32_t, const System::String&, const System::SharedPtr<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(const System::String &srcString, int32_t thePage, const System::String &destString, const System::SharedPtr<Text::TextState> &textState)
| Parameter | Type | Description |
|---|---|---|
| srcString | const System::String& | The string to be replaced. |
| thePage | int32_t | Page number (0 means “all pages”). |
| destString | const System::String& | The replaced string. |
| textState | const System::SharedPtr<Text::TextState>& | Text state (TextColor, Font etc). |
ReturnValue
Returns true if replacement was made.
See Also
- Class String
- Typedef SharedPtr
- Class TextState
- Class PdfContentEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++