Get a free 14-day trial on a wide range of WooCommerce Marketplace extensions and themes. Explore products

Rocky PDF Invoice Builder

Rocky PDF Invoice Builder creates PDF invoices, receipts, packing slips and credit notes for your WooCommerce orders. You design each document in a drag-and-drop editor, and the plugin fills it with the order data, attaches it to WooCommerce emails and lets customers download it from My Account.

Overview

↑ Back to top

Every document is built from a template: a page with a header, content, and footer section that you fill with elements such as a logo, the billing address, the products table and the totals. Each element reads its value from the order, so one template serves every order. There are four document types:

DocumentWhat it is forHow it reaches the customer
InvoiceThe bill for an orderEmail attachment, My Account download
ReceiptProof that an order was paidEmail attachment, printed from the order screens
Packing slipA list of items for packing, without pricesPrinted from the order screens
Credit noteA record of a refund, one per refundRefund email attachment, My Account download

Everything lives under WooCommerce > Invoices, which has three tabs: Dashboard (invoice counts, a getting-started checklist and recent orders), Templates and Settings.

Requirements

↑ Back to top
  • WordPress 6.2 or later
  • WooCommerce 8.0 or later
  • PHP 7.4 or later (8.1 or later recommended)
  • PHP extensions: mbstring, dom, and gd or imagick
  • PHP memory limit of 128 MB minimum, 256 MB recommended
  • A current version of Chrome, Firefox, Safari, or Edge for the editor

To check your server, go to Tools > Site Health > Info and open the Server section. The plugin supports both High-Performance Order Storage (HPOS) and legacy order storage.

Setup wizard

↑ Back to top

The setup wizard opens after you activate the plugin. Every choice can be changed later.

  1. Getting started: the welcome screen. Click Continue.
  2. Template: pick a bundled design or the Blank Template (the magnifier opens a larger preview), then click Continue. It becomes your default invoice template.
  3. Company: enter your company name, address, phone, email, and Tax ID / VAT number (optional). Fetch from WooCommerce fills in the name and address from your WooCommerce store settings.
  4. Email and Automation: – Attach invoice PDF to emails, and choose which WooCommerce emails carry it: Completed Order, Processing Order, Customer Invoice, On-Hold Order. – Attach receipt PDF to emails. It stays off and locked until you design a receipt template. Turn it on later in Settings > Email Settings. – Auto-generate invoice number when an order reaches the statuses you select (Pending Payment, Processing, On Hold, Completed). – Enable customer downloads in My Account.
  5. Done: a summary of what was saved. Click Go to Dashboard.

You can leave at any point with Skip setup wizard. To run it again, open WooCommerce > Invoices > Settings and click Run Setup Wizard Again.

Choosing a starting invoice design in the setup wizard

Templates

↑ Back to top

Go to WooCommerce > Invoices > Templates. The links above the list filter it by Invoices, Receipts, Credit Notes, Packing Slips or Trash, and the default template of each type carries a Default badge.

Every document type has a blank template (Blank Template, Blank Receipt, Blank Packing Slip, Blank Credit Note) that cannot be deleted. A template with no elements is never attached to an email, so a document type does nothing until you design a template for it.

Templates list with Edit, Duplicate, Generate Receipt and Set as Default actions

Bundled designs

↑ Back to top

The plugin includes 30 invoice designs plus a packing slip for the Hello Pro design. They are stored inside the plugin, and a design’s images are added to your Media Library when you use it. Treat a design as a starting point:

  • The company name and contact lines come from Settings > Company Details through variables, so fill those in first.
  • Most designs show a demo logo. Click it in the editor and choose your own image in the properties panel.
  • The Payment Details element is empty until you enter your bank details, and it stays off the PDF until then.

Choosing default templates

↑ Back to top

Hover over a template and click Set as Default. Each document type has one default. The first template you create for a type becomes its default if the type has none yet. A default template cannot be trashed, so set another one as default first.

Creating a template

↑ Back to top
  1. Click Add New Template.
  2. Enter a Template Name and choose the Type: Invoice, Receipt, Packing Slip or Credit Note.
  3. Under Choose a Template, pick Blank Template or a design. The category links (Minimal, Professional, Modern, Colorful, Classic, Creative) filter the designs.
  4. Click Create Template. The editor opens with the new template.

A packing slip created from an invoice design has its prices, totals, and payment elements removed. Hello Pro uses its own packing slip design.

Managing templates

↑ Back to top

Hover over a template for Edit, Quick Edit (rename), Duplicate, Set as Default, Preview and Trash. Invoice templates also have three actions that copy the invoice into another document type with the same look:

ActionChanges made to the copy
Generate ReceiptThe title becomes Receipt, number and date labels such as “Invoice #:” become “Receipt #:”, due date removed
Generate Packing SlipThe title becomes Packing Slip, number labels become “Order #:”, prices hidden, totals and payment elements removed
Generate Credit NoteThe title becomes Credit Note, number labels become “Credit Note #:”, due date, payment status and payment details removed

The title is found wherever it sits, including inside columns, and keeps its case, so INVOICE becomes RECEIPT. Longer text that mentions an invoice, such as “Please keep this invoice for your records”, is left for you to adjust in the editor.

If the type has no default template yet, the generated one becomes the default.

Import and export

↑ Back to top

Import and export are in the editor toolbar.

  • Export offers With Images (ZIP), which bundles the template and its images, or JSON Only. Use ZIP to move a template to another site.
  • Import accepts a JSON or ZIP file from Local File, or any bundled design from Predefined Templates. Under Import Mode, choose Import as New Template to keep the current template, or Replace Current Template to overwrite its content. Replacing cannot be undone.
  • Save As copies the open template under a new name.

Trash and restore

↑ Back to top

Trash moves a template to the Trash view, where it stays until you act on it. There, Restore brings it back, Delete Permanently removes it and Empty Trash deletes everything. To trash several templates, tick them and choose Move to Trash from Bulk Actions.

Visual editor

↑ Back to top

Open the editor with Edit on any template.

Visual editor layout with sidebar, canvas and properties panel

Editor layout

↑ Back to top
  • Toolbar (top): back to templates, template name, undo, and redo, zoom, Portrait, or Landscape, light, dark, or system theme, Import, Export, Save As, Preview and Save. An asterisk next to the name means there are unsaved changes.
  • Sidebar (left): the elements, grouped as Common, Header, Customer, Invoice, Products, and Footer. Drag an element onto the canvas to add it. The sidebar only offers elements that fit the document type, so a packing slip has no prices or totals.
  • Canvas (center): the page. A selected element shows a Clone and a Delete button.
  • Properties panel (right): the settings of whatever is selected.

Sections

↑ Back to top

The Header holds the logo, addresses, document number and dates. The Content section holds the products table and totals, and grows with the number of order lines. The Footer holds payment details, the thank-you message and terms, and is pinned to the bottom of the page in the PDF. Click a section’s label, or an empty part of it, to edit its padding, background color and background image.

Properties panel

↑ Back to top

With an element selected, the panel shows its options (see Elements below) plus typography, color, alignment, and margin. Justify alignment places the label and value apart on one line, which suits dates and totals.

Navigator

↑ Back to top

Click the Navigator icon at the top of the sidebar to see every element as a tree, grouped by section and column. Click an item to select it, or drag it to reorder elements or move them between sections and columns.

Document settings

↑ Back to top

Click the gray area around the page, or press Escape, to see the document settings:

  • Preview Order: show a real order on the canvas instead of sample data. The choice is saved with the template.
  • Default Typography: font family, size, line height, weight, style, text color and heading color. Elements use these values unless you change them on the element.
  • Page Padding (mm): the space at each edge of the page.
  • Background: page background color and border.
  • Watermark: an image behind the content, with opacity, scale, rotation, and position.

Dynamic variables

↑ Back to top

Text fields accept variables in curly braces, which are replaced with the order’s values. Click Insert variable next to a text field to pick one from a searchable list, or type it, for example Thank you for order {order_id}, {customer_first_name}.

VariableShows
{order_id}Order number
{order_date}Order date, in your WordPress date format
{order_total}Order total with currency
{payment_method}Payment method title
{order_notes}Note the customer left at checkout
{customer_name}Billing first and last name
{customer_first_name}Billing first name
{customer_email}Billing email
{billing_address}Full billing address
{shipping_address}Full shipping address
{company_name}Company name from Settings
{company_address}Company address from Settings
{company_email}Company email from Settings
{company_tax_id}Tax ID / VAT number from Settings
{company_website}Your site address
{original_invoice_number}Credit notes only: number of the refunded invoice
{refund_reason}Credit notes only: reason entered with the refund

The editor’s list has more, including the order status, phone numbers and single address parts such as {billing_city}.

Preview

↑ Back to top

Preview shows the template as a finished page, with zoom and a Print button. It uses sample data unless you chose a preview order in the document settings. The Preview Mode icon at the top of the sidebar gives a clean view of the canvas.

Keyboard shortcuts

↑ Back to top
ShortcutAction
Ctrl+SSave
Ctrl+ZUndo
Ctrl+Shift+Z or Ctrl+YRedo
Ctrl+POpen the preview
Ctrl+Shift+PToggle preview mode
Delete or BackspaceDelete the selected element
EscapeDeselect
Ctrl+Plus, Ctrl+Minus, Ctrl+0Zoom in, zoom out, reset zoom
?Show the shortcut list

Elements

↑ Back to top

All elements also have typography, color, alignment, and margin settings. Labels such as “Invoice #:” can be edited and accept variables.

ElementWhat it showsKey options
LogoAn image logo. With no image of its own it uses the logo from Settings > Company DetailsImage, link URL, maximum width
Text LogoYour company name as styled textText
Invoice HeadingThe document title, such as INVOICEText
Company DetailsName, address, phone, email and Tax ID from Settings > Company DetailsLabel, show or hide each line
Customer BillingBilling name and addressLabel, show name, address, city, country
Customer ShippingShipping name and addressSame as Customer Billing
Invoice NumberThe document number (see Settings > Numbering)Label
Issue DateThe order dateLabel, date format
Due DateThe issue date plus a number of daysDays after issue date (default 30), date format
Payment MethodThe payment method titleLabel
Payment DateThe date the order was paidLabel, date format
Transaction IDThe payment gateway’s transaction IDLabel
Shipping MethodThe shipping method nameLabel
Tracking NumberThe tracking number saved by a supported shipment tracking extensionLabel
Products TableItem, quantity, unit price and line total for each order lineHide prices, SKU column, product image, sale price, header and border styling, alternate row color
Subtotal, Discount, Shipping, Fees, Tax, TotalThe order totals (see Totals below)Label, Hide when zero, Total background and border
Payment StatusA badge from the order status: PAID, PROCESSING, ON HOLD, PENDING, REFUNDED and othersLabel, badge styling
Payment DetailsYour bank name and account details. Left off the PDF while both are emptyLabel, bank name, bank details
Thank You MessageA closing lineText
Terms & ConditionsYour termsText
Customer NotesThe note the customer left at checkoutLabel
ColumnsOne to four side-by-side columns that hold other elementsColumn count, widths, gap
DividerA horizontal lineStyle, thickness, width, color
Icon + TextAn icon beside a short text, for example a phone numberIcon, size, colors, gap
Custom TextAny text, including variablesText
ImageAny image from the Media LibraryImage, maximum width

Totals

↑ Back to top

The six totals elements read their amounts straight from the WooCommerce order, in your WooCommerce currency format. The plugin does no calculation of its own.

Place them in the order WooCommerce adds them up: Subtotal, Discount, Shipping, Fees, Tax, Total. The products table shows line amounts before coupons and the Discount line takes the coupon off, so the lines on the page add up to the total.

Discount, Shipping, Fees, and Tax have a Hide when zero checkbox. With it ticked, the line is left out of any document where that amount is zero, while the canvas keeps showing it so you can edit it.

Emails and My Account

↑ Back to top

Email attachments

↑ Back to top

The plugin attaches PDFs to the emails WooCommerce already sends, without changing their content. Configure this in Settings > Email Settings:

DocumentDefaultEmails it can attach to
InvoiceOn, Completed OrderCompleted Order, Processing Order, Customer Invoice, On-Hold Order
ReceiptOn, Completed Order and Processing OrderSame as invoice
Credit noteOffRefunded Order

A document is attached only when its template has elements, so receipts start going out once you design a receipt template. The WooCommerce email itself must be enabled under WooCommerce > Settings > Emails. To send an invoice on demand, tick Customer Invoice, open the order and choose Send order details to customer from Order actions.

Invoices use the template from Settings > Template Assignments when one matches the order’s products, otherwise the default invoice template.

Note: The PDF attached to emails is stored the first time it is created and reused after that. If you change the template or the order and want later emails to carry the new version, click Regenerate next to that document in the order’s Invoice box.

My Account downloads

↑ Back to top

With Enable Customer Downloads on (the default), customers can open their invoices from their account:

  • My Account > Orders shows an Invoice button for processing and completed orders.
  • The order details page shows View Invoice, which opens a viewer with Print, Download, and zoom controls, and Download Invoice.
  • If an order has refunds, the order details page also shows a Download button for each credit note, including on fully refunded orders.

The invoice buttons appear once your default invoice template has elements, and the credit note buttons once your default credit note template has elements. Customers must be logged in and see only their own orders, so guests get their invoice by email only.

Invoice buttons on the customer's order details page

Order screens and bulk print

↑ Back to top

Order edit screen

↑ Back to top

Open any order in WooCommerce > Orders. The Invoice box in the right-hand column shows:

  • Invoice: the invoice number and date, or “No invoice generated yet.” View opens the invoice in a new tab with Print, Download, and zoom. Download saves the PDF. Regenerate rebuilds the stored PDF from the current template and keeps the invoice number. Viewing or downloading gives the order an invoice number if it has none.
  • Receipt: View, Download and Regenerate, once your default receipt template has elements.
  • Packing Slip: View and Download, once you have a default packing slip template.
  • Credit Notes: one row per refund with its number and amount, each with View, Download and Regenerate.
Invoice box on the WooCommerce order edit screen

Orders list and bulk print

↑ Back to top

The orders list gains an Invoice column with a view icon and a Print Invoice button in the Actions column. If you do not see them, enable them under Screen Options. To print many documents at once:

  1. Tick the orders in WooCommerce > Orders.
  2. From Bulk actions, choose Print Invoices, Print Packing Slips, Print Credit Notes or Print Receipts (listed once your receipt template has elements), then click Apply.
  3. A page opens with all the documents. Click Print All to print them, or Download All to get a ZIP file with one PDF per document.

Print Credit Notes includes every numbered refund of the selected orders and skips orders without refunds. The Recent Orders list on the Dashboard tab has Bulk Print and Bulk Print Packing Slips buttons too.

Bulk print page for selected orders

Credit notes

↑ Back to top

Every refund you issue in WooCommerce, full, or partial, gets a credit note with its own number from the credit note sequence (CN-0001, CN-0002, and so on by default), separate from invoice numbers.

  1. On the Templates tab, choose Generate Credit Note under your invoice template, or create a template of the type Credit Note. Do this before you issue refunds, so the documents are not empty.
  2. Edit it if needed. Amounts show the refunded values, customer details come from the original order, and {original_invoice_number} and {refund_reason} are available in text fields.
  3. To email credit notes, turn on Attach Credit Note to Emails in Settings > Email Settings. They go out with the Refunded Order email.

Credit notes can be opened from the order’s Invoice box, printed with Print Credit Notes, and downloaded by customers in My Account.

Settings

↑ Back to top

Go to WooCommerce > Invoices > Settings. Click Save Settings after changing a tab.

Company details

↑ Back to top

Enter Company Name, Address, Phone, Email and Tax ID / VAT Number, and upload a Company Logo (300 x 100 pixels is a good size). Fetch WooCommerce Info fills in the name and address from your WooCommerce store settings. These values feed the Company Details element, the Logo element when it has no image of its own, and the company variables.

Numbering

↑ Back to top

Invoice Number Mode is either Use WooCommerce Order Number (the default) or Custom Invoice Number. A custom number is built from:

  • Prefix, for example INV- (the default) or INV-2026-
  • Starting Number
  • Number Padding, the number of digits (4 gives 0001)
  • Suffix
  • Reset Counter: Never, Yearly, or Monthly

Preview shows the next number as you type. Credit Note Numbering has the same fields for its own sequence. An invoice number is assigned once per order and never changes, so new settings only affect orders that do not have a number yet.

Custom invoice number format with live preview

Email settings

↑ Back to top
  • Attach Invoice to Emails, Attach Receipt to Emails and Attach Credit Note to Emails, each with its Email Types (see Emails and My Account above).
  • Auto-Generate: assign the invoice number when an order reaches a selected status: Pending Payment, Processing, On Hold or Completed (Processing and Completed by default). Keep ticked the statuses whose emails carry the invoice.
  • Enable Customer Downloads: show invoice and credit note buttons in My Account.

PDF settings

↑ Back to top
  • Paper Size (A4, A3, Letter, or Legal; A4 by default) applies to every invoice, receipt, packing slip and credit note PDF, and to printing from the document viewer.
  • Default Orientation (Portrait or Landscape) is the orientation new templates start with. Each template keeps its own orientation, which you change with Portrait or Landscape in the editor toolbar.

The editor shows the page in A4 proportions whatever the paper size, so check a Letter or Legal layout with Download on a real order.

Template assignments

↑ Back to top

Use a different invoice template for certain product categories:

  1. Under Add New Assignment, choose a Product Category and an Invoice Template.
  2. Set a Priority. When an order contains products from several assigned categories, the assignment with the highest priority wins.
  3. Click Add Assignment.

Orders that match no assignment use the default invoice template. Remove an assignment with Delete in the Current Assignments table.

Fonts

↑ Back to top

Upload Font adds your own font files (.ttf, .woff, .woff2 or .otf, up to 5 MB each) to the font list in the editor. For fonts that must appear in the PDF, upload .ttf or .otf, because the PDF engine cannot read .woff or .woff2.

Enable Google Fonts (on by default) adds the Google Fonts library to the editor’s font list. The fonts are loaded from Google when the editor, the document viewer or a PDF needs them. When the option is off, the plugin makes no requests to Google, and documents that use a Google font fall back to a standard font.

Advanced

↑ Back to top

Keep my invoice data and settings is on by default, so your templates, company details, numbering and invoice history stay in the database if you delete the plugin, and a reinstall picks up where you left off. With it off, deleting the plugin removes that data permanently. Stored PDF files and invoice numbers saved on orders are kept either way. Only users who can activate plugins see this tab.

Troubleshooting

↑ Back to top

No PDF attached to an email, or a blank PDF

↑ Back to top
  • Check that the template the order uses has elements. Blank templates are never attached. For receipts and credit notes, design a template of that type first.
  • In Settings > Email Settings, check that the attachment is switched on and the email type is ticked. Credit note attachments are off by default.
  • Check that the email is enabled in WooCommerce > Settings > Emails.
  • A failed PDF never stops the email from being sent. Look in WooCommerce > Status > Logs for the error.

An emailed invoice shows an old design

↑ Back to top

Emails reuse the stored PDF. Click Regenerate next to the invoice, receipt or credit note in the order’s Invoice box. View and Download always use the current template.

Fonts look different in the PDF

↑ Back to top

The PDF is built on the server. System fonts such as Calibri or Segoe UI exist only on your computer, so the PDF engine substitutes a standard font. Use a Google font, or upload the font as .ttf or .otf. If accented letters or other scripts show as boxes, choose a font that contains those characters.

Images do not show in the PDF

↑ Back to top

The server loads each image by its URL, so use images from your Media Library. Loading can fail on a password-protected staging site, on a server that blocks requests to its own address, or with an invalid SSL certificate. PNG and JPG are the safest formats, so convert a WebP or SVG image that does not appear.

The layout differs between the editor and the PDF

↑ Back to top

The editor draws the page in your browser, while the PDF uses its own layout engine, so spacing can differ slightly. Leave some room between elements, use Columns for side-by-side content, and check the result with Download on a real order that has several lines.

The invoice button is missing in My Account

↑ Back to top
  • Enable Customer Downloads must be on.
  • The default invoice template must have elements.
  • The order must be processing or completed.
  • The customer must be logged in and own the order. Guest orders show no buttons.
  • If the invoice viewer shows a “page not found” error, go to Settings > Permalinks and click Save Changes.

PDF creation stops or times out

↑ Back to top

Large images and bulk printing need memory and time. Raise the PHP memory limit to 256 MB, for example with define( 'WP_MEMORY_LIMIT', '256M' ); in wp-config.php, and the PHP maximum execution time to 60 seconds or more, or ask your host to. If a bulk print still stops, print fewer orders at a time.

Frequently asked questions

↑ Back to top

Can I use the WooCommerce order number as the invoice number?

↑ Back to top

Yes. That is the default mode in Settings > Numbering. Switch to Custom Invoice Number for your own sequence with a prefix and padding.

Will changing the numbering renumber existing invoices?

↑ Back to top

No. An invoice number is saved on the order the first time it is assigned. New settings apply to orders that do not have a number yet.

Can guest customers download their invoices?

↑ Back to top

Not from My Account, because a guest order has no account. Attach the invoice to the order emails instead.

Does the plugin connect to outside services?

↑ Back to top

The bundled designs and the font list are stored in the plugin. Fonts are loaded from Google only while Enable Google Fonts is on.

What happens to my data if I delete the plugin?

↑ Back to top

By default your templates, settings and invoice history are kept. You can change this in Settings > Advanced.

Where can I get help?

↑ Back to top

Open a ticket from your WooCommerce.com account under My Account > Support.

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.