PDF Invoice for Woocommerce
PDF Invoice for WooCommerce creates a clean, professional PDF invoice for every order and attaches it to the WooCommerce emails you choose. Customers can download their invoice from their account, and you can download…
Solid choice
PDF Invoice for Woocommerce is a solid plugin choice in 2026, with a few things worth checking first. It runs on 20+ sites, is rated 5/5 and was last updated 2 months ago, and scores 70/100 on our health check.
- Tested with the latest WordPress (7.1)
- Small user base (20+ active installs)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where PDF Invoice for Woocommerce stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| Packing Slip | #66 |
| pdf invoice | #26 |
| vat invoice | #26 |
| woocommerce invoice | #69 |
| woocommerce pdf invoice | #34 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 1 reviews
About PDF Invoice for Woocommerce
From the official readme · v1.6Description
PDF Invoice for WooCommerce creates a clean, professional PDF invoice for every order and attaches it to the WooCommerce emails you choose. Customers can download their invoice from their account, and you can download invoices and packing slips straight from the Orders screen.
Each invoice shows your logo and company details, the customer’s billing details and VAT number, every purchased item with its SKU and options, taxes, shipping, the totals and the amount due.
Invoices
- Automatic – an invoice is generated when an order reaches the statuses you choose (for example Processing or Completed).
- Paid invoices – orders in the statuses you mark as paid show a green PAID badge and an amount due of zero.
- Email attachments – attach the invoice to any WooCommerce order email: New order, Processing order, Completed order, Order details and more.
- Sequential invoice numbers – optional, with your own starting number. A number is never issued twice, even when many orders change status at the same time.
- VAT number – an optional VAT Number field for the classic checkout and the Checkout block, printed on the invoice, the packing slip and the admin order screen.
- Complete order details – item SKUs, variation attributes and add-ons, taxes, shipping, payment method and totals, with “Page X of Y” on every page.
- Your branding – logo (PNG, JPG or SVG), company name, address, email, phone, a footer note and copyright text.
- Any language – non-Latin text (for example Cyrillic and Greek) and currency symbols print correctly with the bundled DejaVu Sans font.
Packing slips
- Printable packing slips with the items, quantities and options, the billing and shipping address, the shipping method and the payment method – no prices.
- The packing slip button in the Orders list can be switched off in the settings.
For customers
- “Download Invoice” button on the order received and view order pages, and an “Invoice” action in My Account > Orders.
- Guests can download their invoice with the secure order link.
- Invoices are only offered for orders that reached an invoice status, so no invoice is created for pending, failed or cancelled orders.
For store owners
- Download invoices and packing slips from the WooCommerce Orders list.
- “Preview Template” in the settings shows a sample invoice with your company details.
- Override the invoice and packing slip templates in your theme (
yourtheme/invoice-for-wc/template-1.phpandpacking-slip.php).
Compatibility
- High-Performance Order Storage (HPOS) and the Cart and Checkout blocks.
- Translation ready.
Privacy and security
- Generated PDFs are stored with an unguessable file name in a protected folder (
uploads/wphub-invoice) and are only delivered through permission-checked download links. - PDFs are a cache: files older than 7 days are removed automatically and re-created from the current order when needed.
- Customer data is escaped before it goes into the PDF, and scripts in documents are disabled.
- No tracking and no external services – PDFs are created on your own server with the bundled Dompdf library.
For developers
Filters: wphub_invoice_placeholders, wphub_invoice_number, wphub_invoice_paper_size, wphub_invoice_date_format, wphub_invoice_page_number_text, wphub_invoice_customer_can_download, wphub_invoice_dompdf_options, wphub_invoice_cleanup_days and wphub_invoice_settings. Actions: wphub_before_pdf_invoice and wphub_after_pdf_invoice.
Installation
- Go to Plugins > Add New Plugin, search for “PDF Invoice for Woocommerce” (or upload the zip), then install and activate it. WooCommerce must be active.
- Go to WooCommerce > Settings > PDF Invoice, enter your company details and choose when invoices are generated, marked as paid and attached to emails.
- Click “Preview Template” to check the layout.
Changelog
Security and reliability release: invoice PDFs are no longer publicly downloadable, customer data is escaped in the PDF, and several fatal errors are fixed. Recommended for all users.
1.6 – 2026-09-29
- Fix – Checkout, order emails and other front-end requests could stop with a fatal error (“Call to undefined function wp_tempnam()”) the first time a remote company logo was downloaded.
- Fix – The customer’s name and company were printed twice on invoices and packing slips (once on their own and again inside the formatted address).
- Fix – Packing slips showed an empty “Ship to” block and “Shipping Method” row for orders without a shipping address or shipping method.
- Feature – Invoices now list item details (variation attributes, product add-ons and other item meta) under each line, like the packing slip.
- Dev – New template placeholders {billing_address_only} and {shipping_address_only} (the formatted address without the name and company lines).
- Tweak – Updated the bundled libraries: masterminds/html5 2.11.0 and sabberworm/php-css-parser 9.5.0. Dompdf 3.1.6, php-font-lib 1.0.2 and php-svg-lib 1.0.2 are the latest releases.
- Fix – Sequential numbering: the first invoice got the starting number + 1 instead of the configured starting number. Raising the starting number later now takes effect; lowering it never re-issues a used number.
- Security – Generated PDFs were stored as uploads/wphub-invoice/invoice-{number}.pdf, i.e. publicly downloadable by guessing the number. Files now carry an unguessable site-specific hash, the folder is protected (index.php + .htaccess) and old files are removed on update. PDFs are always delivered through the permission-checked download links.
- Security – Customer checkout data (company, name, phone, email, VAT number) was inserted into the PDF HTML unescaped, allowing markup (e.g. remote images) to be injected into the PDF renderer. All values are now escaped.
- Feature – VAT Number field now also works with the WooCommerce Checkout block (Checkout Fields API); the value appears on the invoice, packing slip and the admin order screen.
- Feature – “Invoice” download action in My Account > Orders.
- Fix – Customers could download an “invoice” for pending, failed or cancelled orders (and use up sequential numbers). Customer downloads are now limited to orders in a “Generate Invoice” / “Mark as Paid” status or that already have an invoice.
- Fix – Emails and downloads could deliver an outdated invoice (e.g. without the PAID label, or before an order edit) for up to 7 days; the PDF is now re-rendered for the current order when attached or downloaded.
- Fix – Fatal error when the email attachments filter ran for an email without an order (e.g. account emails) or was applied with three arguments.
- Fix – “Page X of Y” was never printed (embedded PHP is disabled in Dompdf); page numbers are now drawn natively on invoices and packing slips.
- Fix – Bold text in the templates fell back to a serif font; Cyrillic, Greek and other non-Latin customer names printed as “?” (DejaVu Sans fallback added).
- Fix – Fatal error on invoices containing a deleted product or a zero-quantity line.
- Fix – PHP warnings on fresh installs before the settings were saved; clearing all “Generate Invoice”, “Mark as Paid” or “Attach to Emails” choices silently restored the defaults.
- Fix – Plugin did not load on multisite when WooCommerce was activated per site instead of network-wide.
- Fix – The settings screen also wrote a redundant autoloaded “wphub-invoice” option (removed on update).
- Fix – Advance Partial Shipment documents were streamed with an invalid file name; {shipping_phone} placeholder added.
- Tweak – Settings are sanitized per type (URL, email, number); the company logo is cached instead of being downloaded for every PDF.
- Tweak – Removed unused Dompdf files and the DejaVu Sans Mono / DejaVu Serif fonts (plugin size 11 MB to 7 MB). Bundled Dompdf is 3.1.6 (latest; includes the 2026 security fixes).
- Tweak – Tested with WordPress 7.1 and WooCommerce 11.1 (HPOS and Checkout block) on PHP 8.2 – 8.5. Minimum PHP lowered to 7.4 (the code and the bundled libraries support it).
- Dev – New filters: wphub_invoice_dompdf_options, wphub_invoice_placeholders, wphub_invoice_number, wphub_invoice_customer_can_download, wphub_invoice_page_number_text, wphub_invoice_paper_size, wphub_invoice_date_format, wphub_invoice_cleanup_days.
1.5 – 2026-09-16
- Fix – Placeholder replacement in invoice/packing-slip templates used order and customer data (billing address, company name, VAT number, etc.) as a preg_replace() replacement string; a value containing “$1” or similar could be interpreted as a regex backreference and silently corrupt the generated PDF. Switched to a plain, safe string replacement.
- Fix – Sequential invoice numbering read-then-wrote the “last invoice number” option non-atomically, so two orders changing status at nearly the same time (e.g. a bulk status update) could be assigned the same invoice number. The increment is now atomic.
- Fix – The admin-only invoice preview AJAX endpoint accepted a “template” value that was used to build a filesystem path without validation, and had no capability check beyond the nonce. Added a capability check and restricted the value to known template files.
- Fix – The CSS/JS cache-busting version constant was stuck at an older value than the plugin version across the last two releases, so updated assets could be served from a stale browser cache. It now matches the plugin version.
- Tweak – Removed a leftover unused debug variable from the invoice preview script.
1.4 – 19/08/2026
- Tweak – Text domain renamed to “pdf-invoice-for-woocommerce” to match the plugin slug and improve translation loading reliability.
- Tweak – Improved escaping, security, and WordPress coding standards for better Plugin Check compliance.
- Feature – Added daily background cleanup to automatically delete generated PDF invoices and packing slips older than 7 days from the uploads directory.
- Feature – Added Download Invoice and Download Packing Slip icons to the WooCommerce Orders list action column.
- Feature – Added a Download Invoice button to the front-end order details page for customers.
- Feature – Added Packing Slip PDF generation.
1.3 – 01/03/2026
- Fix – Packing slip PDF preview fix.
1.2 – 14/03/2024
- Fix – HPOS Compatibility.
1.1 – 25/03/2023
- Fix – Packing Slip added for advanced partial shipment plugin.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best PDF Invoice for Woocommerce alternatives
All Packing Slip plugins →FAQ
PDF Invoice for Woocommerce: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is PDF Invoice for Woocommerce free?
Yes. PDF Invoice for Woocommerce is free to download and use from the official WordPress.org plugin directory.
Is PDF Invoice for Woocommerce safe to use in 2026?
PDF Invoice for Woocommerce is a solid plugin choice in 2026, with a few things worth checking first. It runs on 20+ sites, is rated 5/5 and was last updated 2 months ago, and scores 70/100 on our health check.
How many websites use PDF Invoice for Woocommerce?
PDF Invoice for Woocommerce is active on 20+ WordPress websites and has been downloaded 3,227 times since it launched in August 2022. It was downloaded 122 times in the last 30 days.
Does PDF Invoice for Woocommerce work with WordPress 7.1?
Yes. The developer has tested PDF Invoice for Woocommerce up to WordPress 7.1.5, the latest release. It requires WordPress 6.5 or newer.
What PHP version does PDF Invoice for Woocommerce need?
PDF Invoice for Woocommerce requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was PDF Invoice for Woocommerce last updated?
The latest version, 1.6, was released on September 29, 2026 (2 months ago).
Who makes PDF Invoice for Woocommerce?
PDF Invoice for Woocommerce is developed and maintained by WpExperts Hub.
What are the best alternatives to PDF Invoice for Woocommerce?
The most popular alternatives to PDF Invoice for Woocommerce are PDF Invoices & Packing Slip… (5K+ installs), VeloX (60+ installs) and WDOnline Print All for WooC… (40+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card



