Replace Text With Image In Word
- Method: POST
- Endpoint: /api/v2/ReplaceTextWithImageInWord
Parameters
- docNamestring, Required
Source file name with extension
- docContentbase64, Required
The content of the input file
- Image File Namestring, Required
Name of the image or stamp
- Image File Contentstring, Required
The content of the input file
- Is First Page SkipbooleanDefault: false
You can select any one -
- true
- false
- Page Numbersstring
- Specify page indices as comma-separated values or ranges to process (e.g. “0, 1, 2-” or “1, 2, 3-7”).
- If not specified, the default configuration processes all pages. The input must be in string format.
- Search Textstring, Required
You can search any text but it must be string.
Example - Djokovic
Output
- File ContentBinary
Output file content from the PDF4me Connect
Header
Content-Type:application/json
Authorization: Please copy key from the link.
Payload
{
"docName": "output.docx",
"docContent": "Please put doc base64 content",
"ImageFileName": "stamp.png",
"ImageFileContent": "Please put image base64 content",
"IsFirstPageSkip":false,
"PageNumbers": "1",
"SearchText": "Djokovic"
}
PDF4me api samples
- CSharp(C#)
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda