Actions80
- Add Attachment To PDF
- Add Barcode To PDF
- Add Form Fields To PDF
- Add HTML Header Footer
- Add Image Stamp To PDF
- Add Image Watermark To Image
- Add Margin To PDF
- Add Page Number To PDF
- Add Text Stamp To PDF
- Add Text Watermark To Image
- AI-Invoice Parser
- AI-Process Contract
- AI-Process HealthCard
- Classify Document
- Compress Image
- Compress PDF
- Convert HTML To PDF
- Convert Image Format
- Convert JSON To Excel
- Convert Markdown To PDF
- Convert PDF To Editable PDF Using OCR
- Convert PDF To Excel
- Convert PDF To PowerPoint
- Convert PDF To Word
- Convert To PDF
- Convert URL to PDF
- Convert VISIO
- Convert Word to PDF Form
- Create Images From PDF
- Create PDF/A
- Create Swiss QR Bill
- Crop Image
- Delete Blank Pages From PDF
- Delete Unwanted Pages From PDF
- Split PDF By Barcode
- Disable Tracking Changes In Word
- Enable Tracking Changes In Word
- Extract Attachment From PDF
- Extract Form Data From PDF
- Extract Pages From PDF
- Extract Resources
- Extract Table From PDF
- Extract Text By Expression
- Extract Text From Word
- Fill PDF Form
- Find And Replace Text
- Flip Image
- Flatten PDF
- Generate Barcode
- Generate Document Single
- Generate Documents Multiple
- Get Document From Pdf4me
- Get Image Metadata
- Get PDF Metadata
- Split PDF By Swiss QR
- Get Tracking Changes In Word
- Image Extract Text
- Linearize PDF
- Merge Multiple PDFs
- Overlay PDFs
- Parse Document
- Protect PDF
- Read Barcode From Image
- Read Barcode From PDF
- Read SwissQR Code
- Remove EXIF Tags From Image
- Repair PDF Document
- Replace Text With Image
- Replace Text With Image In Word
- Resize Image
- Rotate Document
- Rotate Image
- Rotate Image By EXIF Data
- Rotate PDF Page
- Sign PDF
- Split PDF By Text
- Split PDF Regular
- Unlock PDF
- Update Hyperlinks Annotation
- Upload File To PDF4me
Overview
This node operation "Replace Text With Image In Word" allows users to replace specified text within a Word document with an image. It is useful in scenarios where dynamic content needs to be inserted into Word documents, such as adding logos, signatures, or other images in place of placeholder text. For example, automating the insertion of a company logo wherever a placeholder text like "{{logo}}" appears in a contract document.
Properties
| Name | Meaning |
|---|---|
| Word Document Input Type | How the Word document is provided: - Binary Data (from previous node) - Base64 String (encoded Word document) - URL (link to Word document) |
| Word Document Binary Property | Name of the binary property containing the Word document (used if input type is Binary Data) |
| Word Document Name | Name of the Word document file including extension (used if input type is Binary Data or Base64 or URL) |
| Base64 Word Document Content | Base64 encoded content of the Word document (used if input type is Base64) |
| Word Document URL | URL of the Word document (used if input type is URL) |
| Image Input Type | How the image file is provided: - Binary Data (from previous node) - Base64 String (encoded image) - URL (link to image file) |
| Image Binary Property | Name of the binary property containing the image file (used if input type is Binary Data) |
| Image File Name | Name of the image file including extension (used if input type is Binary Data or Base64 or URL) |
| Base64 Image Content | Base64 encoded content of the image (used if input type is Base64) |
| Image URL | URL of the image file (used if input type is URL) |
| Is First Page Skip | Boolean flag indicating whether to skip replacing text on the first page |
| Page Numbers | Specifies which pages to perform the replacement on; default is "1" |
| Search Text | The exact text string in the Word document that should be replaced by the image |
| Output Binary Field Name | Name of the binary property where the output Word document will be stored |
Output
The node outputs a modified Word document with the specified text replaced by the provided image. The output is stored in a binary property named as per the "Output Binary Field Name" property (default "data"). This binary data represents the updated Word document file (.docx).
Dependencies
- Requires access to the input Word document and image either as binary data, base64 strings, or URLs.
- No explicit external API keys or services are indicated in the code snippet.
- The node depends on internal action logic for "ReplaceTextWithImageInWord" which handles the actual processing.
Troubleshooting
- Common issues:
- Incorrect or missing input Word document or image data.
- Invalid URLs or inaccessible resources when using URL input types.
- Specified search text not found in the Word document, resulting in no replacements.
- Incorrect page numbers format or values causing unexpected behavior.
- Error messages:
- Errors related to missing binary properties or invalid base64 content usually indicate misconfiguration of input properties.
- Network errors when fetching documents or images from URLs.
- Resolutions:
- Verify that the input document and image are correctly provided according to the selected input type.
- Ensure URLs are accessible and point directly to valid files.
- Double-check the search text matches exactly the text in the document.
- Use correct page number formats (e.g., "1", "1-3", "2,4").