Adding a Text Item to a PDF Page
Contents
[
Hide
]
Introduction
Aspose.PDF Cloud allows you to add Text Items from a PDF Document. Aspose.PDF Cloud provide the following API to achieve this
API Information
API | Type | Description | Swagger Link |
---|---|---|---|
/pdf/{name}/pages/{pageNumber}/text | PUT | Add a TextItem on the given page number | PutAddText |
Request Object Model
Please refer to our GitHub Page for the Text Request Object Structure
Request Object Sample
{
"LeftMargin": 0,
"RightMargin": 0,
"TopMargin": 0,
"BottomMargin": 0,
"Rectangle": {
"LLX": 0,
"LLY": 0,
"URX": 0,
"URY": 0
},
"Rotation": 0,
"SubsequentLinesIndent": 0,
"Lines": [
{
"HorizontalAlignment": "Left",
"Segments": [
{
"Value": "This is added by me today ",
"TextState": {
"FontSize": 0,
"ForegroundColor": {
"A": 0,
"R": 0,
"G": 0,
"B": 0
},
"BackgroundColor": {
"A": 0,
"R": 0,
"G": 0,
"B": 0
}
}
}
]
}
]
}
cURL Example
SDK Source
The Aspose.PDF Cloud SDKs can be downloaded from the following page: Available SDKs