LH Woocommerce PDF Invoicing dynamically generates a PDF invoice for every WooCommerce order, served via a REST API endpoint. Nothing is written to disk or cached — the PDF is generated fresh on every request, using DOMPDF (vendored via Composer). The invoice number is simply the WooCommerce order number, so no separate invoice sequence or database table is needed.
GET /wp-json/lh-woocommerce-pdf-invoicing/v1/invoice/{order_id}) that streams a binary PDF, with permission checks so admins can fetch any order and customers only their own.$order->is_paid() so it works across processing, completed, and custom paid statuses.lh-woocommerce-pdf-invoicing folder to wp-content/plugins/.composer install --no-dev --optimize-autoloader to install DOMPDF and its dependencies into vendor/.DOMPDF v2.x (LGPL-2.1), plus DOMPDF’s own dependencies vendored alongside it — phenx/php-font-lib, phenx/php-svg-lib, masterminds/html5, and sabberworm/php-css-parser. Since these are vendored copies rather than a shared Composer install, PHP-version deprecation fixes to them sometimes need to be patched directly in this plugin rather than waiting on a WooCommerce/DOMPDF update — see the Changelog.