Working with PDFs in Python: Adding Images and Watermarks


This article is the second in a series on working with PDFs in Python:


Today, a world without the Portable Document Format (PDF) seems to be unthinkable. It has become one of the most commonly used data formats ever. Up to PDF version 1.4, displaying a PDF document in an according PDF viewer works fine. Unfortunately, the features from the newer PDF revisions, such as forms, are tricky to implement, and still require further work to be fully functional in the tools. Using various Python libraries you can create your own application in an comparable easy way.

This article is part two of a little series on PDFs with Python. In part one we already gave you an introduction into reading PDF documents using Python, and started with a summary of the various Python libraries. An introduction followed that showed how to manipulate existing PDFs, and how to read and extract the content – both the text and images. Furthermore, we showed you how to split documents into its single pages.

In this article you will learn how add images to your PDF in the form of watermarks, stamps, and barcodes. For example this is

To finish reading, please visit source site