Order PDF Attachment for WooCommerce is a WordPress plugin by 001GMD. It generates a customizable A4 PDF of each order and attaches it to the WooCommerce emails you select, by default the New order email sent to the shop manager. It requires WordPress 5.8+, PHP 7.4+ and WooCommerce, supports HPOS, and creates the PDF on your own server with no external libraries or services.
Order PDF Attachment for WooCommerce
A clean A4 PDF of every order, attached to the emails you choose. Print or archive straight from the inbox.
FeaturesEverything in the order, on one page.
A4 layout
Logo, store details, customer and billing, shipping address, products with SKU, variations and options, totals and customer note.
Pickup / delivery date
A highlighted box, compatible with the Order Delivery Date plugin.
Your emails
Attached to the "New order" email by default. Pick any WooCommerce email, customer ones included.
On the order screen
A "Download A4 PDF" button on every order.
Zero dependencies
No external libraries or services. The PDF is generated on your server.
HPOS and i18n
High-Performance Order Storage compatible. English and Italian included.
WooCommerce > Order PDF
Colors
Highlight color and text color.
Logo
Upload JPEG, PNG, GIF or WebP.
Font
Helvetica, Times or Courier, web-safe.
Fields
Choose which WooCommerce fields are shown.
Emails
Choose which WooCommerce emails carry the attachment.
Footer
Custom footer text.
Specs
The PDF uses standard PDF fonts, so characters outside Western European alphabets (Cyrillic, Greek, Arabic, CJK) are not supported.
Questions
Which emails receive the PDF?
By default only the "New order" email sent to the shop manager. You can pick any WooCommerce email in WooCommerce > Order PDF, including customer emails.
Is the PDF attached to unpaid or cancelled orders?
The PDF follows the emails you selected. WooCommerce sends the "New order" email when an order becomes Processing, Completed or On hold, not for pending, failed or cancelled orders.
How do I show the pickup / delivery date?
Enable the "Pickup / delivery date" field in the settings. It reads the date saved by the Order Delivery Date plugin. Other plugins can be supported with the opaw_delivery_date filter.
Where are the generated files stored?
Temporarily in wp-content/uploads/opaw-temp/, a folder protected from direct access, and removed after 24 hours.
Can I use my own font?
Not at the moment. The plugin uses the standard PDF fonts so it works everywhere without dependencies.
Developer hooks
opaw_email_ids filters the IDs of the emails that carry the PDF.opaw_delivery_date filters the label and value of the pickup / delivery date box.