PDF Invoice, Packing Slips & Credit Notes

PDF Invoice, Packing Slips & Credit Notes is a WooCommerce invoice plugin that creates a PDF invoice, a packing slip, and a credit note for every order. It attaches them to the WooCommerce emails you choose, gives each invoice a sequential invoice number, and lets customers download their own documents. It’s built for stores that need VAT-ready invoices, print packing slips for their own shipping, or sell in several languages. View the product page.

Quick start

↑ Back to top

Send your first automatic invoice in five steps:

  1. Go to WooCommerce > Settings > PDF Invoices.
  2. In Company & branding, add your company name, address, and logo, then select Save changes.
  3. In Numbering, set Invoice number to Sequential invoice number and save.
  4. In Emails, make sure Invoice is ticked for Processing order or Completed order, then save.
  5. Open any order and select Download next to Invoice in the PDF Documents box to check the result.
Get started with PDF invoices checklist showing four setup steps and progress

The Get started with PDF invoices checklist at the top of the settings screen tracks the same steps. Select Dismiss to hide it once you’re done.

Installation

↑ Back to top

To start using a product from WooCommerce.com, you can use the โ€œAdd to storeโ€ functionality on the order confirmation page or the My subscriptions section in your account.

  1. Navigate to My subscriptions.
  2. Find the Add to store button next to the product youโ€™re planning to install.
  3. Follow the instructions on the screen, and the product will be automatically added to your store.

Alternative options and more information at:
Managing WooCommerce.com subscriptions.

Requirements

↑ Back to top
  • WordPress 6.5 or later.
  • WooCommerce 8.5 or later.
  • PHP 7.4 or later.
  • A writable uploads folder (wp-content/uploads). Email attachments are created there as temporary files and deleted after the email is sent.
  • The PHP Zip extension, only for the Download invoices (ZIP) bulk action. Without it, that action is hidden and everything else works.
  • A company logo in PNG, JPG, or GIF format from your Media Library. WebP, SVG, and images from other websites can’t be used in PDFs.

The plugin works with High-Performance Order Storage (HPOS), the legacy order storage, the Checkout block, and the classic checkout. The PDF engine is bundled, so you don’t need any other software or service.

Setup and configuration

↑ Back to top

All settings are in WooCommerce > Settings > PDF Invoices, in six sections: Company & branding, Documents, Numbering, Customer access, Emails, and Tools. The header links to this documentation and to support.

Company & branding

↑ Back to top

These details appear in the header of every invoice, packing slip, and credit note.

Company and branding settings with company name, address, email, VAT or tax ID, logo, accent color, and footer text
  • Company name: The name printed on your documents. Defaults to your site title.
  • Company address: Your address, one line per row.
  • Company email: The email address printed under your address.
  • VAT / tax ID: Printed under your address, for example “VAT ID: PL1234567890”. Leave it empty to hide it.
  • Company logo: Select Upload logo to choose an image from the Media Library, or Remove logo to clear it. Use PNG, JPG, or GIF, ideally 600 ร— 200 px or smaller.
  • Accent color: The color of headings and table headers in the Modern template.
  • Footer text: Text printed at the bottom of each document, such as payment terms, bank details, or a thank-you note.

Live preview

↑ Back to top

Below the Company & branding and Documents settings, Live preview shows a real order with the settings currently on screen, before you save. Choose an Order and a Document, then select Update preview. Previews never assign invoice numbers, so you can try settings safely.

Live preview of a PDF invoice for a real order with the Northline Coffee logo and accent color

Documents

↑ Back to top

Choose the invoice template and the layout of all documents.

Document layout settings with template, paper size, font, text direction, product SKU, and tax column
  • Template: Modern (accent color headers) or Simple. Developers can override any template from the theme, see Developer notes.
  • Paper size: A4 (default) or US Letter.
  • Font: Automatic (recommended) switches to the bundled Unicode font when a document contains characters such as Polish, Czech, Greek, Cyrillic, Arabic, or Hebrew. You can also force Helvetica (Western European only) or DejaVu Sans (Unicode).
  • Text direction: Automatic (follows the document language), Left to right, or Right to left (Arabic, Hebrew).
  • Product SKU: Show the SKU under each product name. On by default.
  • Tax column: Show the tax amount of each line on invoices and credit notes. Off by default.

An invoice made with the Modern template, US Letter, and the tax column on:

PDF invoice made with the Modern template, with the store logo, invoice number, addresses, products, and totals

Numbering

↑ Back to top

Set the format of your invoice numbers and credit note numbers.

Invoice number and credit note number settings with prefix, suffix, minimum digits, yearly reset, and next number

Invoice numbers:

  • Invoice number: Sequential invoice number (recommended for VAT invoices) or Same as the order number (default).
  • Prefix and Suffix: Text before and after the number. You can use the placeholders {Y} (year), {y} (two-digit year), {m} (month), and {d} (day). For example, INV-{Y}- gives INV-2026-0001.
  • Minimum digits: Pads the number with zeros, from 0 to 12. For example, 4 gives 0001.
  • Reset: Never (one continuous sequence) or Every year on January 1.
  • Next invoice number: The number the next invoice will get. The description under the field shows the full example, such as INV-2026-0026.

Credit note numbers:

  • Prefix and Suffix: Default CN- and empty, with the same placeholders.
  • Next credit note number: The number the next credit note will get.

Credit notes use their own sequence with the same minimum digits and reset rule. They’re numbered when sequential numbering is on.

A number is assigned the first time an invoice or credit note is created (by download, email, bulk print, or customer download) and never changes afterwards. Lower the next number only if no document with that number exists yet.

Customer access

↑ Back to top

Control what customers can download and where.

Customer access settings with customer downloads, documents customers can download, guest download links, order pages, links in emails, and customer VAT number
  • Customer downloads: Allow customers to download PDFs from their account. Off by default.
  • Documents customers can download: Any of Invoice, Packing slip, and Credit note.
  • Guest download links: Let guest customers download their documents with a private link secured by the order key. Off by default.
  • Order pages: Show a “Documents” list on the order received (thank you) page and the view order page. On by default.
  • Links in emails: Add download links to customer order emails. This needs guest download links.
  • Customer VAT number: Add an optional “VAT number” field to checkout and print it on invoices. It works on the classic checkout and the Checkout block, and you can edit it in the order’s billing details.

Customers can only download documents of processing, completed, on-hold, and refunded orders. Packing slips and invoices of unpaid orders are never offered.

Emails

↑ Back to top

Choose which documents are attached to each WooCommerce email, including emails sent to the store.

Email attachments table with a column for invoice, packing slip, and credit note for each WooCommerce email

Tick Invoice, Packing slip, or Credit note in the row of each email. On a new install, the invoice is attached to Processing order, Completed order, and Order details, and the credit note to Refunded order. Refund emails attach the credit note of the refund that was just made, including partial refunds. Untick everything in a row to stop attaching documents to that email.

Tools

↑ Back to top
Tools section with the test document generator and the delete data on uninstall option
  • Test a document: Choose an order and a document, then select Generate & download. Downloading an invoice assigns its number when sequential numbering is on. Errors are written to WooCommerce > Status > Logs (source: pdf-invoice).
  • Delete data on uninstall: When the plugin is deleted, also remove its settings, the invoice and credit note numbers stored on orders, and the number counters. Leave this off to keep your invoice history.

How-to guides

↑ Back to top

How to send a WooCommerce invoice automatically with order emails

↑ Back to top
  1. Go to WooCommerce > Settings > PDF Invoices > Emails.
  2. Tick Invoice in the row of the email that should carry the invoice, for example Completed order.
  3. Select Save changes.
  4. When that email is sent, the PDF invoice is generated, attached, and numbered (if it has no number yet).

To send an invoice on request, open the order, choose Send order details to customer in Order actions, and select Update. Make sure Invoice is ticked for Order details in the Emails section.

How to set up sequential invoice numbers and continue from your old system

↑ Back to top
  1. Go to WooCommerce > Settings > PDF Invoices > Numbering.
  2. Set Invoice number to Sequential invoice number.
  3. Enter a Prefix, such as INV-{Y}-, and the Minimum digits, such as 4.
  4. Choose Every year on January 1 in Reset if your numbers should restart each year.
  5. To continue from another invoice plugin, enter your next number in Next invoice number, then select Save changes.

Orders whose invoice was never created keep showing the order number until their invoice is created. Existing invoices are never renumbered.

How to print packing slips in bulk

↑ Back to top
  1. Go to WooCommerce > Orders.
  2. Select the orders you want to ship.
  3. Choose Print packing slips (PDF) in Bulk actions and select Apply.
Orders screen with three orders selected and the Print packing slips (PDF) bulk action chosen

You get one PDF with a packing slip per order. Packing slips list the items and quantities, without prices. The same menu has Print invoices (PDF) and Download invoices (ZIP), which gives one invoice file per order. You can process up to 200 orders at a time. The PDF Documents column on the Orders screen also has an invoice and packing slip button for each order.

Packing slip PDF with order number, shipping method, billing and shipping addresses, products, and quantities

How to create a credit note for a refund

↑ Back to top
  1. Open the order and refund it as usual with WooCommerce’s Refund button. Enter a Reason for refund if you want it printed.
  2. The credit note appears in the PDF Documents box of the order, one for each refund.
  3. Select Download next to the credit note. If Credit note is ticked for Refunded order in the Emails section, the customer also gets it with the refund email.
PDF Documents box on the order screen with the invoice, packing slip, and a credit note for a refund

The credit note shows the refunded items as positive amounts, the refund reason, and the original invoice number.

Credit note PDF with credit note number, original invoice number, refunded item, and refund reason

How to let customers download their PDF invoice

↑ Back to top
  1. Go to WooCommerce > Settings > PDF Invoices > Customer access.
  2. Turn on Customer downloads and choose the documents customers can download.
  3. Turn on Guest download links if you accept guest orders, and Links in emails to add the links to customer emails.
  4. Select Save changes.

Logged-in customers see the buttons in My account > Orders.

My account Orders table with Invoice, Packing slip, and Credit note buttons next to each order

The order received page and the view order page also show a “Documents” list when Order pages is on.

Documents list on the customer's order page with links to the invoice, packing slip, and credit note

Video

↑ Back to top

Frequently asked questions

↑ Back to top

How do I generate an invoice in WooCommerce?

↑ Back to top

Open the order and select Download next to Invoice in the PDF Documents box, or let the plugin attach it to WooCommerce emails automatically. The invoice is created the first time it’s needed.

When does an invoice get its invoice number?

↑ Back to top

The first time the invoice is created: by email, download, bulk print, or customer download. The number and invoice date are then stored on the order and never change, even if you change the format later.

Can I change the invoice template?

↑ Back to top

Choose Modern or Simple, A4 or US Letter, your logo, accent color, and footer text, then check the live preview. Developers can copy any template file into their theme.

Can I add the customer’s VAT number to the invoice?

↑ Back to top

Yes. Turn on Customer VAT number in Customer access. Customers get an optional “VAT number” field at checkout, and it prints on the invoice next to your own VAT or tax ID.

Does it work with the Checkout block and HPOS?

↑ Back to top

Yes. The plugin declares compatibility with High-Performance Order Storage and the Checkout block, and the bulk actions work on both order screens.

Does it support other languages and right-to-left text?

↑ Back to top

Yes. Documents follow the customer’s language, including WPML order languages. The bundled Unicode font is used automatically for non-Western characters, with right-to-left layout for Arabic and Hebrew. Chinese, Japanese, and Korean need a custom font, see Developer notes.

What happens to my invoices if I delete the plugin?

↑ Back to top

Your settings and invoice numbers are kept unless you turn on Delete data on uninstall in the Tools section first.

Troubleshooting

↑ Back to top

The invoice isn’t attached to the email

↑ Back to top
  • Check that the document is ticked in the row of that exact email in Emails. WooCommerce sends different emails for processing and completed orders.
  • Make sure the uploads folder is writable.
  • Look for errors in WooCommerce > Status > Logs (source: pdf-invoice).

My logo doesn’t show on the PDF

↑ Back to top

The logo must be a PNG, JPG, or GIF from your Media Library. A message under Company logo tells you when the current logo can’t be used. Upload the logo again in a supported format.

Characters show as question marks or boxes

↑ Back to top

Leave Font on Automatic (recommended) or choose DejaVu Sans (Unicode). Chinese, Japanese, and Korean need a custom font.

The invoice shows the order number instead of a sequential number

↑ Back to top

Invoice number is set to Same as the order number, or the invoice was created before you turned on sequential numbering. Numbers already assigned never change. New invoices get sequential numbers.

A customer can’t see the download buttons

↑ Back to top

Check that Customer downloads is on and the document is allowed in Documents customers can download. Downloads are only offered for processing, completed, on-hold, and refunded orders, and a credit note only when the order has a refund.

Known limitations

↑ Back to top
  • Footer text is the same on all documents, so payment terms also print on packing slips and credit notes. Keep the footer general if you print packing slips.
  • On narrow screens, some themes squeeze the document buttons in the Actions row of the view order page. The “Documents” list under the order details has the same links.
  • Chinese, Japanese, and Korean text needs a custom font added by a developer.
  • Packing slips use the headings “Billing address” and “Ship to”. Invoices and credit notes use “Bill to” and “Shipping address”.

Developer notes

↑ Back to top

Template overrides

↑ Back to top

Copy a file from the plugin’s templates folder to your theme to change it, keeping the style folder:

yourtheme/pdf-invoice/modern/invoice.php
yourtheme/pdf-invoice/modern/packing-slip.php
yourtheme/pdf-invoice/modern/credit-note.php
yourtheme/pdf-invoice/modern/document.php

Use the simple folder for the Simple template. The plugin looks in the child theme first, then the parent theme, then its own templates.

Actions

↑ Back to top
  • pdf_invoice_before_document ($document, $order): Start of the document template.
  • pdf_invoice_after_header ($document, $order): After the header.
  • pdf_invoice_after_addresses ($document, $order): After the addresses.
  • pdf_invoice_before_items ($document, $order): Before the items table.
  • pdf_invoice_after_items ($document, $order): After the items table.
  • pdf_invoice_after_totals ($document, $order): After the totals.
  • pdf_invoice_after_document ($document, $order): End of the document template.
  • pdf_invoice_pdf_init ($pdf, $document): After the PDF is set up, before content is written.
  • pdf_invoice_before_output ($pdf, $order, $type, $parts): Before the PDF is output, for example to add pages.
  • pdf_invoice_number_assigned ($number, $type, $order): After an invoice or credit note number is assigned.
  • pdf_invoice_upgraded ($summary): After the plugin’s upgrade routine runs.

Filters

↑ Back to top
  • pdf_invoice_document_data ($data, $order, $type, $refund): All data passed to the template.
  • pdf_invoice_document_item ($row, $item, $order): One line item row.
  • pdf_invoice_item_meta ($rows, $item): Item meta shown under a product.
  • pdf_invoice_customer_vat_meta_keys ($keys): Order meta keys read as the customer VAT number.
  • pdf_invoice_document_html ($html, $order, $type, $document): The HTML before it becomes a PDF.
  • pdf_invoice_document_settings ($settings): Settings used for documents.
  • pdf_invoice_pdf_output ($pdf, $order, $type): The final PDF content.
  • pdf_invoice_filename ($name, $order, $type, $refund): The PDF file name.
  • pdf_invoice_number_config ($config, $type): Prefix, suffix, digits, and reset.
  • pdf_invoice_number ($number, $sequence, $type, $order): The formatted number.
  • pdf_invoice_assign_number ($assign, $order, $type): Whether a number is assigned.
  • pdf_invoice_email_map ($map): Which documents go with which email.
  • pdf_invoice_delete_attachments_after_send ($delete): Whether temporary attachments are deleted after sending.
  • pdf_invoice_tmp_file_max_age ($seconds): When leftover temporary files are cleaned up.
  • pdf_invoice_user_can_manage_documents ($can, $order): Admin access to documents.
  • pdf_invoice_customer_document_types ($types): Documents customers can download.
  • pdf_invoice_customer_order_statuses ($statuses): Order statuses with customer downloads.
  • pdf_invoice_customer_may_get_document ($ok, $order, $type): One customer download.
  • pdf_invoice_customer_document_links ($links, $order, $owner): Links in the “Documents” list.
  • pdf_invoice_font ($font, $html): The font family.
  • pdf_invoice_document_locale ($locale, $order): The document language.
  • pdf_invoice_rtl ($rtl, $order, $type): Right-to-left layout.
  • pdf_invoice_logo_path ($path, $attachment_id, $url): The logo file used.
  • pdf_invoice_allow_remote_images ($allow, $path): Whether remote images are allowed (default false).
  • pdf_invoice_template_styles ($styles): Available templates.
  • pdf_invoice_template_roots ($roots): Folders searched for templates.
  • pdf_invoice_template_names ($names): Template file names.
  • pdf_invoice_template_path ($path, $name, $style, $context): The template file used.

Chinese, Japanese, and Korean fonts

↑ Back to top

Upload a TrueType font that covers your language (for example, a Noto Sans CJK font) to wp-content/uploads/pdf-fonts/, then add this snippet to a custom plugin or your child theme’s functions.php. Replace the file name with your font. The font is converted the first time a document is created.

add_action( 'pdf_invoice_pdf_init', function ( $pdf ) {
	$dir  = WP_CONTENT_DIR . '/uploads/pdf-fonts/';
	$font = TCPDF_FONTS::addTTFfont( $dir . 'NotoSansSC-Regular.ttf', 'TrueTypeUnicode', '', 96, $dir );
	if ( $font ) {
		$pdf->AddFont( $font, '', $dir . $font . '.php' );
		$pdf->AddFont( $font, 'B', $dir . $font . '.php' );
		$pdf->SetFont( $font, '', 10 );
	}
} );

Works great with

↑ Back to top

Support

↑ Back to top

Need help? Contact WooCommerce.com support for PDF Invoice, Packing Slips & Credit Notes. Include your WordPress, WooCommerce, and plugin versions and any messages from WooCommerce > Status > Logs (source: pdf-invoice).

Related Products

WooCommerce Subscriptions is a WooCommerce extension that lets customers subscribe to your products or...

Offer add-ons like gift wrapping, special messages or other special options for your products.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.