Aspose::Pdf::Facades::PdfContentEditor::ReplaceText method
Contents
[
Hide
]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)
Parameter | Type | Description |
---|---|---|
srcString | System::String | The sting to be replaced. |
thePage | int32_t | Page number (0 for all pages) |
destString | 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(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)
Parameter | Type | Description |
---|---|---|
srcString | System::String | The string to be replaced. |
thePage | int32_t | Page number (0 means “all pages”). |
destString | System::String | The replaced string. |
textState | System::SharedPtr<Aspose::Pdf::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(System::String, System::String) method
Replaces text in the PDF file.
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(System::String srcString, System::String destString)
Parameter | Type | Description |
---|---|---|
srcString | System::String | The string to be replaced. |
destString | 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(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)
Parameter | Type | Description |
---|---|---|
srcString | System::String | String to be replaced. |
destString | 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(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)
Parameter | Type | Description |
---|---|---|
srcString | System::String | String to be replaced |
destString | System::String | Replacing string |
textState | System::SharedPtr<Aspose::Pdf::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++