Troubleshooting PDF Generation Errors and Special Characters

PDF Invoices

Use this when checkout or the Tools tab shows “ERROR Generating PDF,” tofu boxes instead of letters, or a PHP error inside Dompdf. Start with the latest zip from your account, then match the symptom in the table.

In this guide

  1. Update first
  2. Symptoms
  3. Special characters and fonts
  4. Common mistakes

Update first

  1. Download the current zip from File downloads.
  2. Confirm the version inside the zip matches the version shown on that page.
  3. Replace the plugin on the site, then try a sample PDF from the Tools tab.

If File downloads lists 2.1 but the zip still installs as 2.0, stop and contact support. Mixed Dompdf files from a partial update can fatally error.

Symptoms

What you seeLikely causeWhat to try
“ERROR Generating PDF. Please try again.”The HTML template or a font failed while Dompdf rendered the file.Download Sample PDF. Simplify the template. Check debug.log. See fonts below.
Blank squares (□) instead of lettersThe PDF font does not include those glyphs.Embed a font that covers the language. Japanese: Noto Sans JP guide linked below.
Call to undefined method Dompdf\Helpers::uniord()Incomplete or mixed plugin files (old and new Dompdf together).Delete the plugin folder and install a fresh zip from File downloads. Do not copy over the old folder.
Sample PDF works, old orders do notOld stored files, or a template change not regenerated.Generate Missing or Regenerate All on the Tools tab.

Special characters and fonts

Dompdf only draws characters that exist in the font used by the template. Arial or Times on the server often lack Slovak, Czech, Japanese, and similar glyphs.

  • Japanese: follow How to set up Noto Sans JP.
  • Other languages: embed a Unicode font that includes the needed characters, and set it on the body (and headings) in the template CSS.
  • Keep the HTML charset as UTF-8.

Common mistakes

Updating over the old plugin folder

Leftover Dompdf files from 2.0 mixed with 2.1 cause fatal errors such as missing Helpers::uniord().

Fix: Remove wp-content/plugins/pmpro-pdf-invoices, then install the zip from File downloads.

Changing the template font in WordPress admin CSS only

The PDF does not use your theme stylesheet.

Fix: Set the font inside the invoice template HTML/CSS, and make sure that font file is available to Dompdf.