In this guide you’ll learn how to automatically add watermarks to PDFs using Power Automate. You can build workflows that add text, rectangles, images, PDF files, QR Codes, barcodes and other shapes as watermarks to PDFs.
It's important to note that for this guide we show how to add a simple text watermark to PDF files in Dropbox. You can also add watermarks to PDFs in other platforms like SharePoint, Google Drive, OneDrive, or any platform supported by Power Automate. You can also extend our example by adding additional automation like sending a watermarked PDF in an email.
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 Dropbox account and it is connected with Flow.
Using Power Automate to add Text Watermark to PDF
From a high level, the workflow will look as follows:
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 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 Dropbox ‘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 watermark as per screenshot below: