cancel
Showing results for 
Search instead for 
Did you mean: 
anton-khrit

How to add a text watermark to a PDF document using Microsoft Flow or Azure Logic Apps

A watermark that states "Confidential" or "For internal use only" can be a reminder to others about how they should be handling the document. For example, people who have access to a document may be more conscious of leaving it open on their computer screen while they walk away from it if it states "Confidential".

In this article I will describe how to add text watermark to a PDF document. If you are interested in other types of watermarks, like image watermark or rich text watermark review those articles:

  • How to use an image watermark to automatically add a company logo to PDF files and save them in a new folder.
  • How to use a PDF (rich text) watermark to add a watermark with a specific design to PDF documents generated on submitting a form.

We will use Add watermark to PDF action from Plumsail Documents connector. This action supports a few types of watermarks  —  Text, Image, and PDF:

add-a-watermark-to-pdf-select-type1.png

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

 

Use custom text watermark

 

Classify your documents

A watermark that states "Confidential" or "For internal use only" can be a reminder to others about how they should be handling the document. For example, people who have access to a document may be more conscious of leaving it open on their computer screen while they walk away from it if it states "Confidential".

 

Show the status of a document

You may also use the text type watermark to show the status of a document  — such as Reviewed, Approved, or Draft — so that other users immediately recognize the status of the document you have shared.

 

Identify the perpetrator if the document is leaked

Imagine you need to send confidential documents outside of your organization. Adding a watermark that identifies the recipient can be an effective deterrent for people who might disseminate the information. Besides the email address, you may also use such information as the person's name and the time/date to protect PDF document and identify the leak if copies of the protected documents suddenly start circulating.

Let's have a look at an example.

Let's say you have a list of recipients in your SharePoint site:

recipients-list.png

You need to send them a confidential document you would prefer not be spread around. For example, a price list.

You can create a flow that is started on a particular item from the list:

start-a-flow.png

Here is how the entire flow looks like:

send-confidential-document1.png

send-confidential-document.png

Create the flow

Let us have a look at each step of the flow.

Flow trigger

Please navigate to MS Flow, create a flow and find For a selected item action from the SharePoint connector. Using this trigger will allow you to start the flow on a selected item manually. Set your Site Address and the List name:

for-a-selected-item-send-PDF.png
Get item

Get item data using Get item action from the SharePoint connector. Put here ID from the output of the For a selected item action:

get-item-watermark-sent-doc.png
Get file content

Get the file you are going to send with help of Get item action from SharePoint connector:

get-file-content-watermark-sent-doc.png
Add a watermark to PDF

This is an action from Plumsail Documents connector.

Choose Text type of the watermark. Put here File content from the output of the Get file content action and the recipient's Email from the output of Get item action.

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

add-test-watermark-with-email.png
Send an email

We used Send an email action from Office 365 Outlook connector, but you can choose another one. Attachment content is the output from Add watermark to PDF action.

send-email-watermark-sent-doc.png

That is it. The recipient will receive the price list with their email address as the watermark. It will potentially discourage leaks by identifying the recipient.

TextWatermarkResult.png

Conclusion

I hope this article will help you stay in control of your documents and how they are distributed. If you are new to Plumsail Documents connector, here is the first step for getting started.

This article was originally published here.

 

Thanks for reading!

Comments

Is there any way to change the font for this?

Hi @Mgodby,

 

If you need custom fonts, you can use image watermark or PDF watermark.

@anton-khrit Thank you!

Hello there. I have this working fine in my Flow. The only issue I'm facing is how when I add a newline to the text, I get an error.

 

watermarkissue1.png

And this is how my text looks like in my flow. 

watermarkissue3.png

Do you know what I need to do to add a newline to this text without getting an error? Thank you.

Hello @Mgodby,

 

Indeed, there was an issue with the newline symbol in the text watermark option. We've released a fix today. Please give it a try.

 

Hello, will you consider a feature to create a specific layer in the PDF to add the watermark into? Sometimes the watermark will obscure the document content partially, and end users are asking for a way to temporarily hide it by switching off a layer in Acrobat.

About the Author
  • Experienced Consultant with a demonstrated history of working in the information technology and services industry. Skilled in Office 365, Azure, SharePoint Online, PowerShell, Nintex, K2, SharePoint Designer workflow automation, PowerApps, Microsoft Flow, PowerShell, Active Directory, Operating Systems, Networking, and JavaScript. Strong consulting professional with a Bachelor of Engineering (B.E.) focused in Information Technology from Mumbai University.
  • I am a Microsoft Business Applications MVP and a Senior Manager at EY. I am a technology enthusiast and problem solver. I work/speak/blog/Vlog on Microsoft technology, including Office 365, Power Apps, Power Automate, SharePoint, and Teams Etc. I am helping global clients on Power Platform adoption and empowering them with Power Platform possibilities, capabilities, and easiness. I am a leader of the Houston Power Platform User Group and Power Automate community superuser. I love traveling , exploring new places, and meeting people from different cultures.
  • Read more about me and my achievements at: https://ganeshsanapblogs.wordpress.com/about MCT | SharePoint, Microsoft 365 and Power Platform Consultant | Contributor on SharePoint StackExchange, MSFT Techcommunity
  • Encodian Owner / Founder - Ex Microsoft Consulting Services - Architect / Developer - 20 years in SharePoint - PowerPlatform Fan
  • Founder of SKILLFUL SARDINE, a company focused on productivity and the Power Platform. You can find me on LinkedIn: https://linkedin.com/in/manueltgomes and twitter http://twitter.com/manueltgomes. I also write at https://www.manueltgomes.com, so if you want some Power Automate, SharePoint or Power Apps content I'm your guy 🙂
  • I am the Owner/Principal Architect at Don't Pa..Panic Consulting. I've been working in the information technology industry for over 30 years, and have played key roles in several enterprise SharePoint architectural design review, Intranet deployment, application development, and migration projects. I've been a Microsoft Most Valuable Professional (MVP) 15 consecutive years and am also a Microsoft Certified SharePoint Masters (MCSM) since 2013.
  • Big fan of Power Platform technologies and implemented many solutions.
  • Passionate #Programmer #SharePoint #SPFx #M365 #Power Platform| Microsoft MVP | SharePoint StackOverflow, Github, PnP contributor
  • Web site – https://kamdaryash.wordpress.com Youtube channel - https://www.youtube.com/channel/UCM149rFkLNgerSvgDVeYTZQ/