Replace occurrences of a Text in a PDF Document
Contents
[
Hide
]
Introduction
Aspose.PDF Cloud allows you to replace occurrences of a text in a PDF Document. Aspose.PDF Cloud provide the following API to achieve this
API Information
API | Type | Description | Swagger Link |
---|---|---|---|
/pdf/{name}/text/replace | POST | Replace Text Items from a PDF Document | PostDocumentTextReplace |
/pdf/{name}/pages/{pageNumber}/text/replace | POST | Replace all Text Items from a Page in a PDF Document | PostPageTextReplace |
Request Object Model
Please refer to our GitHub Page for the TextReplaceListRequest Request Object Structure
Request Object Sample
{
'TextReplaces': [
{
'OldValue': 'string1',
'NewValue': 'string2',
'Regex': true,
'TextState': {
'FontSize': 0,
'ForegroundColor': {
'A': 0,
'R': 0,
'G': 0,
'B': 0
},
'BackgroundColor': {
'A': 0,
'R': 0,
'G': 0,
'B': 0
}
},
'Rect': {
'LLX': 0,
'LLY': 0,
'URX': 0,
'URY': 0
}
}
],
'StartIndex': 0,
'CountReplace': 0
}
cURL Example
SDK Source
The Aspose.PDF Cloud SDKs can be downloaded from the following page: Available SDKs