PDF Stamper

edd-pdf-stamper-logoThis 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.

Change Log

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.