Add Text Stamp - Watermark to a PDF Page

Introduction

Aspose.PDF Cloud allows you to add a Text Stamp to a PDF Document

API Information

API Type Description Swagger Link
/pdf/{name}/pages/{pageNumber}/stamps/text POST Add Text Stamp to a PDF Document PostPageTextStamps
Sample Request Object

{

   "Type":0,

   "Background":true,

   "BottomMargin":2.0,

   "HorizontalAlignment":1,

   "LeftMargin":3.0,

   "Opacity":0.5,

   "RightMargin":0.0,

   "Rotate":3,

   "RotateAngle":45.0,

   "TopMargin":4.0,

   "VerticalAlignment":3,

   "XIndent":2.0,

   "YIndent":2.5,

   "Zoom":1.5,

   "TextAlignment":0,

   "Value":"TEXT",

   "TextState":{

      "FontSize":14.0,

      "Font":"Arial",

      "ForegroundColor":{

         "A":0,

         "R":255,

         "G":0,

         "B":0

      },

      "BackgroundColor":{

         "A":0,

         "R":0,

         "G":0,

         "B":255

      },

      "FontStyle":2

   },

   "FileName":null,

   "Width":0.0,

   "Height":0.0,

   "PageIndex":0,

   "StartingNumber":0

}

cURL Example

SDK Source

The Aspose.PDF Cloud SDKs can be downloaded from the following page: Available SDKs

SDK Examples

Add text stamp