How to Add a Watermark to a PDF in Python

Protecting and denoting ownership of your information can be as easy as placing a non-removable watermark over your PDF documents. These watermarks can take many forms, such as stating draft level, confidentiality, and team ownership. The following API will automatically place a specified watermark over your PDF documents; you can customize the desired text, font, size, color, and transparency.

Image for post
Image for post

To use this API, you can run this command to install the SDK:

pip install cloudmersive-convert-api-client

Then, you can call the function:

from __future__ import print_function
import time
import cloudmersive_convert_api_client
from import ApiException
from pprint import pprint

The API Key for this function can be retrieved at no cost and with no commitment on the Cloudmersive website. This will give you access to 800 monthly calls across our entire API library.

Written by

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store