Aspose::Pdf::Facades::PdfContentEditor::ReplaceText metod
Innehåll
[
Dölj
]PdfContentEditor::ReplaceText(const System::String&, const System::String&) method
Ersätter text i PDF‑filen.
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(const System::String &srcString, const System::String &destString)
| Parameter | Typ | Beskrivning |
|---|---|---|
| srcString | const System::String& | Strängen som ska ersättas. |
| destString | const System::String& | Ersättningssträng. |
ReturnValue
Returnerar true om ersättningen gjordes.
Se även
- 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
Ersätter text i PDF‑filen med hjälp av det specificerade objektet TextState.
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(const System::String &srcString, const System::String &destString, const System::SharedPtr<Text::TextState> &textState)
| Parameter | Typ | Beskrivning |
|---|---|---|
| srcString | const System::String& | Sträng att ersätta |
| destString | const System::String& | Ersättningssträng |
| textState | const System::SharedPtr<Text::TextState>& | Text tillstånd (TextColor, Teckensnitt osv) |
ReturnValue
Returnerar true om ersättningen gjordes.
Se även
- 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
Ersätter text i PDF‑filen och anger teckenstorlek.
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(const System::String &srcString, const System::String &destString, int32_t fontSize)
| Parameter | Typ | Beskrivning |
|---|---|---|
| srcString | const System::String& | Sträng som ska ersättas. |
| destString | const System::String& | Ersättningssträng. |
| fontSize | int32_t | Teckensnittsstorlek. |
ReturnValue
Returnerar true om ersättningen gjordes.
Se även
- Class String
- Class PdfContentEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfContentEditor::ReplaceText(const System::String&, int32_t, const System::String&) method
Ersätter text i PDF‑filen på den angivna sidan.
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(const System::String &srcString, int32_t thePage, const System::String &destString)
| Parameter | Typ | Beskrivning |
|---|---|---|
| srcString | const System::String& | Strängen som ska ersättas. |
| thePage | int32_t | Sida nummer (0 för alla sidor) |
| destString | const System::String& | Ersättningssträng. |
ReturnValue
Returnerar true om ersättningen gjordes.
Se även
- 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
Ersätter text i PDF‑filen på den angivna sidan. Objektet TextState (teckensnittsfamilj, färg) kan specificeras för den ersatta texten.
bool Aspose::Pdf::Facades::PdfContentEditor::ReplaceText(const System::String &srcString, int32_t thePage, const System::String &destString, const System::SharedPtr<Text::TextState> &textState)
| Parameter | Typ | Beskrivning |
|---|---|---|
| srcString | const System::String& | Strängen som ska ersättas. |
| thePage | int32_t | Sida nummer (0 betyder “alla sidor”). |
| destString | const System::String& | Den ersatta strängen. |
| textState | const System::SharedPtr<Text::TextState>& | Text tillstånd (TextColor, Teckensnitt osv). |
ReturnValue
Returnerar true om ersättningen gjordes.
Se även
- Class String
- Typedef SharedPtr
- Class TextState
- Class PdfContentEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++