JSON API - watermark
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
watermark
PREMIUM
TRIAL / ADVANCED
Inserts a watermark into a PPTX presentation.
Note
You are reading the JSON API documentation. For the PHP API method please go to watermark.
JSON data
| Key | Description |
|---|---|
| document | Path to the local document, Base64 string, or URL. |
| type | "text" or "image". |
| coordinateX | EMUs (English Metric Unit). Default as 4000000. |
| coordinateY | EMUs (English Metric Unit). Default as 2000000. |
| sizeX | EMUs (English Metric Unit). Default as 4000000. |
| sizeY | EMUs (English Metric Unit). Default as 2000000. |
| name | Internal name. If not set, a random name is generated. |
| rotation | 60.000ths of a degree. Default as 315. |
| transparency | 0 to 100. Default as 60. |
If type is "text":
| Key | Type | Description |
|---|---|---|
| text | The string of text used for watermarking. Default as 'DRAFT'. | |
| color | Hexadecimal value or color name. Default as '7D7F7C'. | |
| fontSize | 8, 9, 10, 11 ... Default as 80. |
If type is "image":
| Key | Type | Description |
|---|---|---|
| image | Image file path, base64, or URL. |
Code samples
Example #1
Example #2
Release notes
- phppptx 5.0:
- new action.