PDF Stamper


This extension allows you to apply text or image-based watermarks to PDF downloads. Watermarks can be positioned in nine grid coordinates (any combination of top/middle/bottom and left/center/right), and text-based watermarks can be styled through user-defined font sizes and colors. Additionally, text-based watermarks allow several template tags to further personalize the watermark including:

{name} - The buyer's first name
{fullname} - The buyer's full name, first and last
{username} - The buyer's user name on the site, if they registered an account
{email} - The buyer's email address
{date} - The date of the purchase
{payment_id} - The unique ID number for this purchase
{receipt_id} - The unique ID number for this purchase receipt
{sitename} - Your site name

Stamping can also be controlled on a per-PDF basis, allowing you to selectively prevent files from being stamped. Since version 1.1.0, users also have the option of encrypting and password-protecting their PDFs, with granular control over just how restricted an encrypted PDF is. Want to prevent your users from printing, copying from or modifying your PDF? Now you can!

Once PDF Stamper is activated and a user clicks on a download link, the extension takes over. If the download is a PDF it processes it, adding the necessary watermarks before returning the processed file to the customer. If the download is not a PDF, the standard download mechanics take over.

Once activated, the settings for this extension will be added to Downloads > Settings > Extensions or the PDF Stamper Settings metabox on the Add/Edit Downloads pages.

The following hosts are known to have issues running the PDF Stamper plugin:

  • ASmallOrange
  • WebSynthesis

Requires Easy Digital Downloads v1.7 or later.


Version 2.2.8, February 16, 2015

  • Added backwards compatibility for new Signed URLs coming in EDD v2.3

Version 2.2.7, July 15, 2014

  • Fixed incorrect version of PDF Parser

Version 2.2.6, July 7, 2014

  • Updated FPDF/FPDI
  • Fix glitch with deselecting font styles
  • Improve unit conversion and positioning calculation

Version 2.2.5, June 29, 2014

  • Fixed bug with decoding HTML entities in textual watermarks

Version 2.2.4, May 12, 2014

  • Added support for template tags in password fields
  • Updated PDF protection library

Version 2.2.3, May 11, 2014

Fixed misplaced watermark override checkbox
Added SysInfo data for post-2.0 EDD

Version 2.2.2, May 4, 2014

Fix PDF protection library.
Add better error handling

Version 2.2.1, April 29, 2014

Fixed invalid function call.

Version 2.2.0, April 29, 2014

Upgraded FPDI and FPDI_Parser to latest versions
Added product_title template tag
Replaced baseline_shift option with line_height
Improved vertical alignment formula

Version 2.1.5, March 27, 2014
Added ability to add linebreaks to textual watermarks
Fixed bug with some global settings not properly saving

Version 2.1.4, March 17, 2014
Added font type selection
Removed auto page breaking
Renamed font offset to baseline shift
Fixed baseline shift default position
Added unit specification for advanced positioning
Added page process specification
Fixed position reset

Version 2.1.3, March 8, 2014
Added Purchase Limit template tags
Added filters for password and owner password
Fixed processing absolute URIs outside of webroot

Version 2.1.2, February 26, 2014
Fixed minor typo, replaced activation functions

Version 2.1.1, February 18, 2014
Fix multipage UTF-8 encoding issue

Version 2.1.0, February 17, 2014
Removed unnecessary update class.
Fixed an issue with plugin loading order.
Fixed an issue with UTF8 decoding.

Version 2.0, December 22, 2013
Complete overhaul of codebase
Better error checking
Better and more accurate handling for image positioning
Text-based watermarks left blank will now allow encryption without watermark
Updated global settings to update display through jQuery
Added fine-grained control over watermark location
Added support for watermark transparency
Added ability to override watermark per download
Added font offset parameter
Added proper download logging

Version 1.1.9, December 4, 2013
Removed landscape option
Added page dimension and orientation auto detection

Version 1.1.8, December 3, 2013
Added landscape option

Version 1.1.7, November 23, 2013
Added ability to define font styles for text-based watermarks

Version 1.1.6, November 21, 2013
Fixed a bug that caused files to get corrupted during download.
Fixed a bug that caused non-PDF files to be affected by the stamping process.
Fixed a bug that could cause the server to timeout when downloading PDF files.

Version 1.1.4 - October 3, 2013
Added a new {email} tag.

Version 1.1.3
Fixed bug with locally hosted files not tracking correctly.

Version 1.1.1
Fixed bug with remote-host handler.

Version 1.1.0
Added ability to bypass stamping per-file.
Added ability to encrypt individual files.
Added ability to password protect files.
Fixed bug with re-stamping files

Version 1.0.6
Moved to 1.7 licensing model

Version 1.0.5
Added better handling for remotely hosted files

Version 1.0.4
Added ability to cache stamped PDFs.

Version 1.0.3
Added FPDI_PDF_Parser library to handle compressed PDF files.

Version 1.0.2
Fixed critical bug.

Version 1.0.1
Fixed a compatibility issue with the Amazon S3 extension.

Version 1.0
Initial release.