Troubleshooting PDF Preview unavailability

There may be times where a document does not appear in the PDF Preview and instead a message with similar text to the message below is visible:

The PDF preview for order #68 is not available. This can happen if some settings prevent the document from being generated. Please review your configuration or check the documentation for more details.

Check the various possible reasons below.

Document disabled due to Disable-For setting #

Path: WooCommerce > PDF Invoices > Documents, select a document type, then scroll to General > Disable for.

Due to this setting, the document could be disabled based on:

  • order status
  • payment method
  • billing country

Require-Invoice setting of Receipt document #

There is a setting unique to the Receipt document type that requires the PDF Invoice to be generated in order for the Receipt to be generated and visible in the PDF Preview.

Path: WooCommerce > PDF Invoices > Receipt > Advanced > Require Invoice.

Document type is not enabled #

Each document type offered by the plugin can be enabled or disabled individually.
Path: WooCommerce > PDF Invoices > Documents, select a document type, then scroll to General > Enable.

Missing Credit Note requirements #

In order to be generated, Credit Notes require:

Code snippets affecting document display #

A bug caused by a code snippet could affect a certain type of orders, so when troubleshooting, it may be useful to disable all code snippets, especially if all the other items to check in this document do not bring successful results.

Custom PDF templates with bugs #

In order to verify this, switch the current document template from your custom PDF template to any of the default, unmodified templates:

  • Simple
  • Simple Premium
  • Business
  • Modern

The template can be changed at WooCommerce > PDF Invoices > General > Display settings > Choose a template.