Skip to main content

What are you looking for?

Explore our services and discover how we can help you achieve your goals

Home › Guides

Print-Ready PDF Export from WooCommerce

A WooCommerce store exports a print-ready PDF by generating it on the server after payment. When an order line reaches Processing, a background job rebuilds the file from the saved design or checked upload at the product's trim and bleed, converts colour, runs preflight, stores it privately with a checksum and records it on the order line.

Start reading

Reviewed by CEO, Netbase JSC · Published 23 Nov 2026 · Updated 23 Nov 2026 · 16 min read

star

What does print-ready PDF export from WooCommerce involve?

Print-ready PDF export from WooCommerce is the server-side step that turns each paid order line into the production file prepress will accept: the right page size, trim and bleed boxes, converted colour, embedded fonts and a preflight result. WooCommerce stores the order and the customer's choices; it has no built-in notion of a print file, so the export is code the store owns, started by an order event and run away from the checkout request.

This guide covers when the export starts, where it runs, in what order it builds the file, where the file is kept and how it reaches prepress. The platform constraints underneath it - block checkout, order storage, cart item data - are set out on the WooCommerce web-to-print integration page. The output contract the file is built to - PDF/X flavour, colour profiles, preflight classes - is specified as print-ready PDF and prepress automation.

File output is the artwork part of the WooCommerce web-to-print implementation guide; this page expands it and assumes the configuration record and order-status map defined there. The seven checks a print-ready file must pass are covered in what makes a PDF print-ready; this page shows how a WooCommerce store produces that file every time.

Why is the preview or the upload not the export?

A WooCommerce print store receives artwork by one of two routes, and neither delivers the production file as it arrives.

An online designer. The customer approves a browser canvas: RGB, screen resolution, no bleed. The designer should save the design data - objects, positions, fonts, image references - with an identifier on the cart line, and the export lays that data out again at trim plus bleed in the output colour space. A screenshot of the canvas cannot be repaired into a print file. Whether that designer is a packaged plugin or a custom build is compared in WooCommerce product designer plugins vs custom build; either way, the export needs the data, not a picture.

An uploaded file. The customer's PDF is checked on arrival against the product's page size, bleed, resolution and colour space, using rules such as those in designing automated preflight rules. The export still places it on a page with the product's boxes, applies the output intent and records which file version was used.

In both cases the export is deterministic. The same design revision, product rules and output specification produce the same file, which is what makes a disputed order checkable later.

Which order event should start the export?

WooCommerce documents eight order statuses: Draft, Pending payment, Processing, On hold, Completed, Failed, Cancelled and Refunded. Only one of them means "paid, now make it".

  • Draft, Pending payment, Failed

    Export action
    None
    Reason
    Not paid; a file now is wasted work and may never be used
  • On hold

    Export action
    None, unless the shop releases bank-transfer orders early by rule
    Reason
    Payment not confirmed
  • Processing

    Export action
    Queue one export job for each print line
    Reason
    Paid and awaiting fulfilment
  • Completed

    Export action
    None; the file already exists
    Reason
    Shipped or collected
  • Cancelled, Refunded

    Export action
    Mark the file void; flag a job in production for a person
    Reason
    Stopped before or during production

Hook the change to Processing (the woocommerce_order_status_processing action), not a gateway callback alone: some gateways confirm payment asynchronously, staff may move an order by hand, and the status change is the one signal every route shares. Read the line's configuration record and design identifier through WooCommerce's order item objects, never raw post meta, so the export keeps working whichever order storage mode is active under High-Performance Order Storage.

Why should the PDF be rendered in a background job?

Building a print PDF is heavy: fonts embedded, images resampled, colour converted through ICC profiles, sometimes dozens of pages. PHP's max_execution_time defaults to 30 seconds, and a status change usually happens inside a web request - a gateway callback or an administrator's click - that should finish in well under a second.

So the status hook only queues work. Action Scheduler, the job queue library WooCommerce itself uses for background work such as webhooks, provides as_enqueue_async_action. With its unique flag set, a second call with the same hook, arguments and group is not scheduled again, which absorbs the duplicate events that order systems produce. Make the arguments the order id, the line item id and the design revision, so a repeat for the same revision is ignored and a genuinely new revision is not.

The job itself must be safe to run twice. Before rendering, it checks whether a file for that order, line and revision already exists with a matching checksum; if so, it records success and stops. A failed render is retried a fixed number of times, then marked failed on the order line with the error, so it appears in a prepress queue instead of a log.

In what order does the export run?

The export always runs the same steps in the same order, and each step can stop it with a reason a person can read.

  1. Trigger

    Order reaches Processing

    Output
    One queued job for each print line, keyed by order, line and revision
  2. Resolve the source

    Design identifier or upload reference on the line

    Output
    Design data or the checked upload, with its revision
  3. Load the product geometry

    Product and options from the configuration record

    Output
    Trim size, bleed, page count, safe area, output intent
  4. Render

    Source and geometry

    Output
    A PDF with TrimBox and BleedBox set and fonts embedded
  5. Convert colour

    Rendered PDF and the substrate's profile

    Output
    Output colour space, spot colours kept by name
  6. Preflight

    Converted PDF and the shop's rule set

    Output
    Pass, warn or fail, naming the page, object and rule
  7. Store

    Passed or warned file

    Output
    A private file, its SHA-256 checksum and a revision number
  8. Record

    File path, checksum, specification version, result

    Output
    Hidden meta on the order line
  9. Hand off

    Stored file and job data

    Output
    File in the hot folder, or a job created in the MIS

A preflight fail stops at step 6: the order line is marked "held for prepress" with the report attached, and nothing reaches production until a person resolves it. A warning follows the class the shop's rule set gives it. The geometry in step 3 comes from the product rules, not the uploaded file, which is how an A4 file is caught on an A5 product. The box definitions themselves are explained in bleed, trim and TrimBox in exported print files, and the colour decisions in CMYK and spot colour in a web-to-print pipeline.

Diagram of a print file export: resolve the source, load the product geometry, render and convert colour, preflight, then store with a checksum (opens the full-size diagram in a new tab)
Diagram of a print file export

Where should the file be stored and recorded?

Not in the public uploads folder. WordPress's wp_upload_dir() returns both a filesystem path and a public URL for uploads, because files there are served to anyone with the link. Production files belong outside the web root or in private object storage, downloaded by staff through a role-checked route.

The order line then carries the facts about the file. WooCommerce order items store metadata through update_meta_data(), and get_formatted_meta_data() hides keys that start with an underscore by default, so these fields stay out of customer-facing order emails and the order page:

  • Example value
    exports/2026/11/wc1042-3611-r1.pdf
    Why it is kept
    Locates the private file
  • Example value
    64 hexadecimal characters
    Why it is kept
    Proves the file in production is the file exported
  • Example value
    1
    Why it is kept
    Ties the file to the approved design revision
  • Example value
    bc-silk-v3
    Why it is kept
    The output specification version the file was built to
  • Example value
    pass, or warn: image 240 ppi at size
    Why it is kept
    The result prepress sees without opening the file
  • Example value
    ISO 8601 timestamp, UTC
    Why it is kept
    When the export ran

PHP's hash_file('sha256', ...) computes the checksum. Compare it again when the file is copied to the hot folder, and the "wrong file printed" dispute becomes a lookup.

How does the file reach prepress?

The simplest hand-off is a hot folder for each product family, watched by the RIP or workflow server. The filename carries the job key - order, line and revision - so any sheet traces back to its order. Copy under a temporary name and rename when complete, so a half-written file is never picked up.

Larger shops create the job in their MIS with the file reference, sometimes with a JDF job ticket; that boundary is designed in print MIS and ERP integration. Either way, the checksum travels with the file and a reference is written back to the order line.

What happens when an order changes after export?

Each change to an exported line follows one rule: a new revision, never an overwrite.

  1. Design edited before production. The designer saves revision 2; the status hook or an admin action queues an export for revision 2. Revision 1 stays on disk, marked superseded on the order line, and is removed from the hot folder if it has not been picked up.
  2. Product option changed by staff. A different stock or size changes the geometry, so it is treated like a design edit.
  3. Line refunded or order cancelled. The file is marked void; if production already has it, the line is flagged for a person to stop or write off the job.
  4. Output specification updated. Existing files are not regenerated silently. A re-export is a deliberate action for named orders, and each new file records the new specification version.

What does the export produce for one business card line?

Take order 1042, line item 3611: 500 business cards, 85 x 55 mm finished, 3 mm bleed, silk stock, printed both sides, designed in the browser.

  1. Trigger. The order moves to Processing; one async action is queued with the arguments order 1042, line 3611, revision 1.
  2. Geometry. The product rules give a trim of 85 x 55 mm and 3 mm bleed, so the page is 91 x 61 mm. In PDF points (72 to the inch) the MediaBox and BleedBox are 0 0 257.95 172.91, and the TrimBox is 8.50 8.50 249.45 164.41.
  3. Render and convert. Two pages, front and back, fonts embedded, colour converted with the profile the shop assigns to its coated stock.
  4. Preflight. Every check passes, so the line records pass.
  5. Store and record. The file is written as wc1042-3611-r1.pdf outside the web root, its checksum and the specification version written to the line.
  6. Hand off. The file is copied to the business cards hot folder under a temporary name, renamed when complete, and the line records the hand-off time.

If the customer edits the card before printing starts, the same steps produce wc1042-3611-r2.pdf, and the line shows revision 1 as superseded. A published print-ready PDF output specimen shows what such a specification and file look like.

How do you test the export before launch?

Run the list on a staging copy, then again after each WooCommerce, plugin or PHP update:

  1. Place one order for each product class through the block checkout and, if enabled, the classic checkout; confirm one file for each print line.
  2. Fire the Processing change twice; confirm one queued action and one file.
  3. Open each file in the printer's own preflight tool and check page size, TrimBox, BleedBox, colour space and fonts against the product rules.
  4. Upload a file with no bleed and one in RGB; confirm the line is held with a report that names the page and the rule.
  5. Edit a design after export; confirm revision 2 exists, revision 1 is marked superseded and neither was overwritten.
  6. Request a production file URL while logged out; confirm access is refused.
  7. Compare the checksum on the order line with the file in the hot folder.
  8. Switch order storage mode on the staging copy and repeat test 1.

Where does AI fit in PDF export?

The export stays deterministic; AI can help around it. A preflight report written for operators can become a plain-language draft note for the customer ("the photo on the back will print soft at this size"), or a free-text order note can be read into a draft instruction for prepress. We can build AI-assisted steps into print workflows where a human reviews the result, with accuracy measured on the client's own data before acceptance. A model never changes the file, the boxes or the preflight decision.

How does Netbase JSC approach WooCommerce print output?

Netbase JSC, which operates Web2Print Solutions, has delivered 50+ web-to-print platforms. Netbase JSC maintains reusable web-to-print components - a browser-based online designer, rule-based print pricing templates, print-ready PDF output with CMYK conversion, bleed and trim, storefront connectors for WooCommerce, Shopify, Wix and custom stores, and a photobook and multi-page layout editor - which an engagement may reuse under their own licence terms.

We engineer print output: PDF generation to a client-specified standard, CMYK and spot colour handling, ICC profile selection, bleed and trim geometry, imposition and automated preflight. We can scope and build web-to-print integrations for Shopify, WooCommerce, Magento / Adobe Commerce, BigCommerce, Wix and headless storefronts, and we state each platform's constraints before the work is priced. Client-specific deliverables, access and handover are defined in the engagement contract. Pre-existing software, products, APIs and third-party components remain subject to their respective ownership and licence terms.

A shop that does not want to own a WooCommerce stack has another route. W2P Solution is a white-label web-to-print store platform from Netbase JSC in three editions (Retail, B2B Procurement, Marketplace), hosted and upgraded by Netbase JSC. For every paid W2P Solution order, the store obtains a print-ready PDF for each order line, keeps its own copy with a checksum and trim and bleed boxes, and places the order in a production queue where the operator moves its status and the buyer receives the store's own emails; the print order workflow page shows that queue. The first release of W2P Solution supports flat print products such as cards, flyers and posters; further product types are planned and are not part of the current plans.

Turn this into a scoped brief

To export print-ready files from a WooCommerce store, check the WooCommerce web-to-print integration constraints for your checkout and order storage, then see what print-ready PDF and prepress automation specifies and how the output is accepted by your prepress team. Send a project brief with your WooCommerce version and order storage mode, one product's trim, bleed and page count, one file prepress accepted and one it rejected with the reason, and the folder or system that should receive each file. More technical references are in the guides section.

Limitations

This guide describes an export structure and the WooCommerce, WordPress, Action Scheduler and PHP documentation it relies on, read on 23 November 2026; it does not recommend a specific PDF library or plugin. Box values in the worked example are illustrative geometry, not a shop's specification. Where a technical standard is named, it describes the output specification an engagement produces to, not a credential Web2Print Solutions holds. This site publishes no prices, rates, day rates or payment terms. Web2Print Solutions is the web-to-print engineering service of Netbase JSC. Delivery records cited on this site belong to Netbase JSC; where no delivered example of a capability is published, the page says so rather than implying a record. No delivered WooCommerce PDF export pipeline is published on this site yet.

Discuss your web-to-print project

Frequently asked questions

No. Invoice plugins lay out order data for people to read. A print file needs the product's boxes, output colour space, embedded fonts and preflight, built from the design data.

No. Many carts never pay, and the design can still change. Generate after the order reaches Processing; the designer can show a soft proof before that without creating the production file.

Outside the public uploads directory, in a private folder or private object storage, with the path, checksum and revision on the order line and downloads limited to staff roles.

Yes. A product with a cover and an inner block, or a separate die line, produces one file for each component, each with its own checksum, all keyed to the same order line and revision.

Put this into practice

Ready-made platform

Run it on W2P Solution

A white-label print store with a built-in designer, print pricing rules and a production queue, set up and hosted by the Netbase JSC team.

Commissioned build

Have it engineered for you

When the workflow needs rules, integrations or a configurator a standard edition does not cover, the Netbase engineering team scopes and builds it.

Have a web-to-print project in mind?

Tell us about one product you want to sell online. A senior engineer reads every brief and replies in writing.