Add image watermark to PDF document using Power Automate

If you find yourself in a need to protect your PDF documents, you may decide to add a watermark to them. It can help you to identify the document owner, to maintain some level of traceability, to classify documents, and to assure confidentiality of the information both inside and outside the organization.

We hope this first article from our “How to use Watermarks” series will let you get started with watermarking PDFs using Plumsail Documents in Power Automate (Microsoft Flow).

Here is the list of all the articles in the series:

  1. How to use an image type watermark to automatically add a company logo to PDF files and save them in a new folder.

  2. How to use a text type watermark to prevent documents dissemination.

  3. How to use a PDF type watermark to add a watermark with a specific design to PDF documents generated on submitting a form.

Add watermark to PDF action supports a few types of watermarks  —  Text, Image, and PDF:

Selection of the watermark type

So, let us have a look at how to add an image watermark to a document.

Create the flow

Flow trigger

Please navigate to MS Flow, create a flow and find OneDrive  —  When a file is created action. Using this trigger will allow you to start the flow on adding a file into a folder. Set the name of the source folder:

OneDrive  —  When a file is created action

Get file content

Find Get file content using path action from OneDrive connector. Put here File Path from the output of the previous action:

OneDrive  —  Get file content using path

Get watermark file content

Get the file you are going to use as the watermark. We store it in SharePoint. You can use any other connector to get files from your system.

SharePoint  —  Get file content

Add a watermark to PDF

This is an action from the Plumsail Documents connector.

If this is your first time using the Plumsail Documents connector, Power Automate will request the Connection Name and API Key.

Create connection in Power Automate flow

You can type any name for the connection, for example Plumsail Documents.

Once the connection name is filled out, create an API key in your Plumsail Account, copy and paste it into the Access Key field, and then click Create.

Copying an API key from the account

Choose Image type of the watermark. Put File content from the output of the Get file content using path action into the Document content field, and the File content from the previous action into the Image content field.

We set custom values for Watermark position, Opacity, Watermark Image width. You may check detailed information on how to use these and other settings here.

Plumsail Documents —  Add a watermark to PDF

Create file

Create a file in another folder. We used Create file action from OneDrive connector, but you can save your file in any other cloud service.

OneDrive —  Create file

So, here is our result document watermarked with a large Plumsail logotype on the background:

Result document watermarked with an image type watermark

Conclusion

We hope this series of articles on using Add watermark to PDF action will help you to ascertain the proper use of your PDF documents. If you haven’t used Plumsail Documents yet, registering an account would be the first step. It is quite easy to get started.