The Muhimbi PDF Converter comes with a number of watermarking-related workflow actions for MS Flow. These workflow actions allow elements such as text, rectangles, images, PDF files, QR Codes, barcodes as well as other shapes to be added to a document either in front of or behind the document’s content.
Adding barcodes is now easy to achieve via MS Flow. We support most common barcode types including Codabar, Code11, Code32, Code39, Code39Extended, Code128, Code128A, Code128B, Code128C, GS1Code128, Code93 and Code93Extended.
This guide shows how to add a simple text watermark to PDF files in Dropbox using Muhimbi PDF and create a new version of the watermarked document in a different location in Google Drive.
Before we start building the workflow, ensure all prerequisites are in place.
Make sure you have a full or free trial subscription to PDF Converter for Power Automate.
Naturally, in Microsoft O365, permission to use Power Automate needs to be available to the user as well.
You will need to have the appropriate privileges to create Flows.
You have a Google Drive account with the necessary permissions and it is connected with Flow.
Using Power Automate to add Text Watermark to PDF
Here’s how to add text watermark to PDF with PDF Converter for Power Automate:
Insert ‘When a file is created (properties only)’ Flow action for Dropbox and select the folder location of the PDF files:
Folder: */muhimbi documents
Insert ‘Condition’ Flow action and set the condition as follows:
‘List of File Names’, which is the output of ‘When a file is created (properties only)’ action, ends with ‘,pdf’.
If the step above evaluates to true, add the ‘Get file content’ for Dropbox action in the ‘If yes’ box. Enter the following:
**File: *‘***List of File Id’, which is the output of ‘When a file is created (properties only)’ action.
- Insert the Muhimbi ‘Add text watermark’ action. This workflow action can be used to apply the text to the foreground or background of one or more pages in the document with full control over the font, style, size, and color. The text stored in the content field may contain embedded field codes such as the date or current page number. MS Flow expressions are also supported, which makes it possible for dynamic information stored in workflow variables, or in the Item’s columns, to be embedded in the watermark.
Add the following mandatory fields to the action.
**Source file content: *‘***File Content’, which is the output of ‘Get file content’ action.
Watermark content: Enter the text you want to be displayed in your watermark.
Font size: Enter the watermark font size.
Font color: Enter the watermark font color.
Text alignment: Select the text alignment of the watermark.
Word wrap: Select the word wrap style for the watermark.
Position: Select the position in the document where you want the watermark to be displayed.
- Insert the Google Drive ‘Create file’ action after the ‘Add text watermark’ action.
The action has three main parameters
Folder Path: The Path of your destination Folder.
File name: ‘**List of Files Name’, which is the output of ‘When a file is created (properties only)’ action..
File Content: ‘Processed file content’ is the output of action *‘Add text watermark’
You can test this workflow by uploading a PDF document to the Dropbox location. This will trigger the Flow after a minute and create a new document with a watermark in Google Drive as per the screenshot below: