Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 23 in printed book and digital formats -- plus a one-year subscription (beginning with 24.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are short, so hurry today and order this special bundle before the offer goes away!

Recent issues

Article Preview


Buy Now

Issue 24.1

COLUMN

Watermarking

Using MBS and DynaPDF to watermark your PDFs

Issue: 24.1 (January/February 2026)
Author: Stefanie Juchmes-Simonis
Author Bio: Stefanie studied computer science at the university in Bonn. She came in touch with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 11,434
Starting Page Number: 79
Article Number: 24109
Resource File(s):

Download Icon project24109.zip Updated: 2026-01-04 19:21:35

Related Link(s): None

Excerpt of article text...

Today's column is about watermarks in PDF files. You may want to provide your customers with a PDF file, but you want to make it clear that the file comes from you and make it difficult for them to pass it on. This could be text or an image that you place over the PDF document (see Figure 1).

I'll show you how this works. What we need for this is DynaPDF. DynaPDF is a PDF engine that is used by the MBS DynaPDF plugin for Xojo.

Getting Started

So, we want to place an image and text as a watermark over a PDF. To do this, we first need to create a new instance of the DynaPDFMBS class. This class contains all the functionalities we need today. We can use it to load our PDF right away.

But first, we need to specify which PDF is to be imported and where it is to be saved again once we have finished our work. In this example, I have decided that the files should be located on the desktop, so we create two FolderItems, InputFile and OutputFile, which refer to the corresponding files on the desktop.

...End of Excerpt. Please purchase the magazine to read the full article.