PDF Gift Cards for WooCommerce

By kafestudio

★ 5.0/5 (2 ratings)40+ active installationsVersion 1.1.7

Automatically generate personalized PDF gift cards for WooCommerce orders with a Drag & Drop template editor. No design skills needed.

Description

PDF Gift Card lets you create beautiful, fully personalized PDF gift cards for your WooCommerce store.

It lets store owners upload their own PDF design and dynamically populate it with real order data — no coding required.

How it works

  1. Upload your PDF design (created in Canva, Illustrator, Affinity Designer, etc.)
  2. Drag & drop dynamic fields onto your template
  3. Associate the template with any WooCommerce product
  4. When an order is placed, the PDF is automatically generated and attached to the confirmation email

Available dynamic fields

  • Product name
  • Customer name
  • Recipient name
  • Personalized message
  • Purchase date
  • Expiry date
  • Order number
  • Unique voucher code
  • Price
  • Product image (Pro)
  • Site logo (Pro)
  • QR Code (Pro)

What’s included in the Free plan

  • 1 template
  • All text fields
  • PDF preview with real product data
  • Product associations
  • Multilingual admin: English, French, German, Spanish, Dutch

Upgrade to Pro

  • Unlimited templates
  • Image fields (logo, product photo, QR code)
  • Plugin language selector
  • Priority email support
  • Automatic updates

Multilingual support

The plugin interface is fully translated into:
French, English, German (Deutsch), Spanish (Espanol), Dutch (Nederlands)

Security & GDPR

  • Generated PDFs stored in a protected, non-public directory
  • Configurable auto-deletion of PDFs after N days
  • No personal data stored beyond what WooCommerce already holds

Requirements

  • WordPress 6.0+
  • WooCommerce 8.0+
  • PHP 8.0+

Installation

  1. Upload the pdf-gift-card folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins screen
  3. Go to PDF Gift Cards in your WordPress admin menu
  4. Create your first template, upload your PDF design, and drag & drop your fields
  5. Associate the template with a WooCommerce product
  6. Done!

FAQ

Does this work with any PDF file?

Yes. Any PDF created in Canva, Adobe Illustrator, Affinity Designer or any other tool works as a base template.

Can the customer fill in the recipient’s name themselves?

Yes. The plugin adds a “Recipient name” and “Personalized message” field on the product page, which the customer fills in before adding to cart. These values are then injected into the PDF.

Is the generated PDF attached to the WooCommerce order email?

Yes. The PDF is automatically attached to the customer’s order confirmation email. You can also enable a separate dedicated email.

Is this GDPR compliant?

Yes. PDFs are stored in a protected, non-publicly-accessible directory. You can configure automatic deletion after a number of days (default: 365).

Does it work with variable products?

Yes, both simple and variable WooCommerce products are supported.

Is it compatible with WooCommerce HPOS?

Yes, the plugin fully supports WooCommerce High Performance Order Storage (HPOS / custom order tables).

What’s the difference between Free and Pro?

The Free plan allows 1 template with text fields. The Pro plan unlocks unlimited templates, image fields (logo, product photo, QR code), and priority support.

Changelog

1.1.7 — 2026-10-28

  • New: Gift card validity can now end on 31 December of the year of purchase plus a chosen number of years. Several countries count the statutory validity from the end of the year of purchase rather than from the purchase date — in Germany the three-year limitation period starts on 31 December of the year of sale (§ 199 BGB), so “36 months” would expire a card bought in October two months too early
  • New: Validity in months now goes up to 60 (previously capped at 24)

1.1.6 — 2026-10-27

  • Fix: Customers who checked out as guests always got “Access denied” when clicking the download button on the order confirmation page. Downloads are now authorised by the WooCommerce order key, the same way guest order pages and WooCommerce downloads are
  • Fix: The download handler called an admin-only function, so on the shop side the PDF response ended in a fatal error after the PDF headers had already been sent — the browser received an unreadable file (“Safari cannot open the document”)
  • Fix: System Information reported FPDI / FPDF and QR Code as missing even when the libraries were present, because the diagnostic ran before the autoloader was loaded
  • Fix: The language selector was offered on the free plan although the setting only applies to Pro, silently doing nothing. It is now disabled and labelled as a Pro feature
  • Fix: The “separate email” option was saved but never used anywhere. It is disabled until the feature ships
  • Fix: A field drawn across the right edge of the template wrote outside the card; very narrow fields rendered one character per line
  • Hardening: The PDF storage directory now also denies access under Apache 2.4 and blocks directory listing on Nginx
  • Housekeeping: The daily cleanup task is now unscheduled when the plugin is deactivated

1.1.5 — 2026-10-27

  • Fix: The “Get Pro” button led to the agency home page instead of the subscription page, leaving no way to start a trial or subscribe from the dashboard. It now opens the Freemius checkout, where the 14-day trial starts without a credit card
  • Fix: Free plan limits were not enforced at all — image fields (site logo, product photo, QR code), the language override and the one-template cap were open to everyone. Templates and fields already in place keep working and keep generating cards; only new ones are now gated
  • Fix: The free admin interface was pinned to English instead of following the WordPress locale, so the bundled French, German, Spanish and Dutch translations never showed
  • Compatibility: Tested up to WordPress 7.1 and WooCommerce 11.2

1.1.4 — 2026-08-09

  • Fix: Long text no longer overflows its field — a personalized message ran off the edge of the card instead of wrapping. Text fields now respect the width set in the editor and honour manual line breaks

1.1.3 — 2026-08-05

  • Fix: The “Regenerate & Resend” button on the order screen did nothing — admin scripts were never loaded on the order edit screen (neither HPOS nor legacy storage), so the button had no JS handler at all
  • Fix: No PDF was generated when an order went straight from “On hold” to “Completed” — the usual path for offline payments (bank transfer, cheque), which skips the “Processing” status a template is set to trigger on
  • Fix: The PDF was missing from the order email — generation ran at priority 20, after WooCommerce sends its transactional emails at priority 10, so the file did not exist yet when the email went out
  • Fix: Manual regeneration always resent the “Processing” email, even on a completed order
  • Fix: The euro sign printed as “?” on the generated card, along with œ, typographic apostrophes and dashes — text was encoded to ISO-8859-1, while FPDF standard fonts expect WinAnsi (CP1252)
  • Fix: The price field printed the line total, excluding tax and multiplied by quantity — a 50 € card ordered twice showed “100,00 €”. It now prints the unit price including tax
  • Fix: An empty recipient name no longer passes: the error notice did not actually block the add-to-cart, so cards could be generated without a recipient
  • Improvement: Clear, actionable message when the uploaded PDF cannot be read (1.5+ object compression, password protection) instead of a raw library error

1.1.2 — 2026-08-05

  • Fix: Templates could not be saved on MySQL servers (“Error while saving”) — the templates table was never created because a LONGTEXT column had a DEFAULT value, which MySQL rejects (error 1101). Only MariaDB 10.2.1+ accepted it.
  • Fix: dbDelta() could never apply schema updates — “CREATE TABLE IF NOT EXISTS” prevented it from detecting the table name
  • Improvement: The schema version is now only recorded once the tables really exist, so a failed installation is retried instead of being silently marked as up to date
  • Improvement: Admin notice and detailed SQL error message when the plugin tables are missing

1.1.1 — 2026-06-04

  • Fix: Templates and data are never deleted on plugin uninstall
  • Fix: DB migration (maybe_upgrade) now correctly runs on plugin update
  • Fix: Editor upload button was non-functional due to a script timing issue
  • Fix: PDF preview not rendering (PDF.js IIFE wrapper — import.meta syntax)
  • Fix: Special characters and emoji icons corrupted in editor field list

1.1.0 — 2026-06-03

  • Security: PDF filenames now use a random 24-character token (no longer guessable)
  • Security: Temporary QR code files are now properly deleted after PDF generation
  • Improvement: Error notification email subject now uses the site name dynamically
  • Improvement: Upgraded PDF.js from 3.11.174 to 5.7.284 (bundled locally)
  • Improvement: Replaced deprecated PHP filesystem functions with WP_Filesystem equivalents
  • Fix: PHP syntax errors caused by escaped variables in admin class
  • Fix: Removed load_plugin_textdomain() — auto-loaded since WordPress 4.6
  • Compatibility: Tested up to WordPress 7.0 and WooCommerce 9.6

1.0.0 — 2026-05-14

  • Initial release