{"id":270053,"date":"2025-12-31T19:05:34","date_gmt":"2025-12-31T19:05:34","guid":{"rendered":"https:\/\/en-gb.wordpress.org\/plugins\/kitgenix-pdf-invoicing-for-woocommerce\/"},"modified":"2026-08-31T19:49:21","modified_gmt":"2026-08-31T19:49:21","slug":"kitgenix-pdf-invoicing-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/kitgenix-pdf-invoicing-for-woocommerce\/","author":23310025,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0.0","stable_tag":"2.0.0","tested":"7.1","requires":"6.0","requires_php":"8.1","requires_plugins":null,"header_name":"Kitgenix PDF Invoicing for WooCommerce","header_author":"Kitgenix","header_description":"Simple, modular PDF invoicing for WooCommerce orders.","assets_banners_color":"4f5077","last_updated":"2026-08-31 19:49:21","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/donate\/?hosted_button_id=KALF36K6JJ9B2","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/kitgenix-pdf-invoicing-for-woocommerce\/","header_author_uri":"https:\/\/kitgenix.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":904,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"kitgenix","date":"2025-12-31 19:06:14","revision":3430251},"1.0.1":{"tag":"1.0.1","author":"kitgenix","date":"2026-01-01 19:25:08","revision":3430720},"1.0.3":{"tag":"1.0.3","author":"kitgenix","date":"2026-01-06 11:26:33","revision":3433508},"1.0.4":{"tag":"1.0.4","author":"kitgenix","date":"2026-01-27 19:14:59","revision":3448150},"1.0.5":{"tag":"1.0.5","author":"kitgenix","date":"2026-02-19 22:31:17","revision":3465420},"1.0.6":{"tag":"1.0.6","author":"kitgenix","date":"2026-03-19 10:27:56","revision":3486340},"1.1.0":{"tag":"1.1.0","author":"kitgenix","date":"2026-05-07 13:22:27","revision":3525580},"1.1.1":{"tag":"1.1.1","author":"kitgenix","date":"2026-05-07 13:49:06","revision":3525601},"1.1.2":{"tag":"1.1.2","author":"kitgenix","date":"2026-05-07 14:09:26","revision":3525623},"1.1.3":{"tag":"1.1.3","author":"kitgenix","date":"2026-05-26 19:55:25","revision":3549718},"2.0.0":{"tag":"2.0.0","author":"kitgenix","date":"2026-08-31 19:49:21","revision":3674890}},"upgrade_notice":{"2.0.0":"<p>Recommended for all websites. Adds document status\/regenerate\/void controls with a per-document history log, an atomic invoice-numbering table that closes a race condition under concurrent load, a redesigned admin UI, and several security hardening and bug-fix improvements. Existing counters and credit note history are migrated automatically.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3674890,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3674890,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3674890,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3674890,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.3","1.0.4","1.0.5","1.0.6","1.1.0","1.1.1","1.1.2","1.1.3","2.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3674890,"resolution":"1","location":"assets","locale":"","width":1922,"height":11478},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3674890,"resolution":"2","location":"assets","locale":"","width":568,"height":896},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3674890,"resolution":"3","location":"assets","locale":"","width":1060,"height":1492},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3674890,"resolution":"4","location":"assets","locale":"","width":568,"height":990},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3674890,"resolution":"5","location":"assets","locale":"","width":1628,"height":148}},"screenshots":{"1":"Settings: Company &amp; Document Details tab, including company name, address, tax\/VAT ID, and invoice prefix.","2":"WooCommerce order screen: the Kitgenix PDF Invoicing meta box showing the invoice number with Preview and Download PDF actions.","3":"A generated PDF invoice streamed directly in the browser.","4":"WooCommerce order screen on a refunded order: invoice and credit note actions shown together in the meta box.","5":"My Account \u2192 Orders: customers can use \"View Invoice\" to download their own order invoice."}},"plugin_section":[],"plugin_tags":[245365,182007,55959,62467,286],"plugin_category":[45],"plugin_contributors":[246171],"plugin_business_model":[],"class_list":["post-270053","plugin","type-plugin","status-publish","hentry","plugin_tags-credit-notes","plugin_tags-invoice-generator","plugin_tags-packing-slips","plugin_tags-pdf-invoices","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-kitgenix","plugin_committers-kitgenix"],"banners":{"banner":"https:\/\/ps.w.org\/kitgenix-pdf-invoicing-for-woocommerce\/assets\/banner-772x250.png?rev=3674890","banner_2x":"https:\/\/ps.w.org\/kitgenix-pdf-invoicing-for-woocommerce\/assets\/banner-1544x500.png?rev=3674890","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/kitgenix-pdf-invoicing-for-woocommerce\/assets\/icon-128x128.png?rev=3674890","icon_2x":"https:\/\/ps.w.org\/kitgenix-pdf-invoicing-for-woocommerce\/assets\/icon-256x256.png?rev=3674890","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/kitgenix-pdf-invoicing-for-woocommerce\/assets\/screenshot-1.png?rev=3674890","caption":"Settings: Company &amp; Document Details tab, including company name, address, tax\/VAT ID, and invoice prefix."},{"src":"https:\/\/ps.w.org\/kitgenix-pdf-invoicing-for-woocommerce\/assets\/screenshot-2.png?rev=3674890","caption":"WooCommerce order screen: the Kitgenix PDF Invoicing meta box showing the invoice number with Preview and Download PDF actions."},{"src":"https:\/\/ps.w.org\/kitgenix-pdf-invoicing-for-woocommerce\/assets\/screenshot-3.png?rev=3674890","caption":"A generated PDF invoice streamed directly in the browser."},{"src":"https:\/\/ps.w.org\/kitgenix-pdf-invoicing-for-woocommerce\/assets\/screenshot-4.png?rev=3674890","caption":"WooCommerce order screen on a refunded order: invoice and credit note actions shown together in the meta box."},{"src":"https:\/\/ps.w.org\/kitgenix-pdf-invoicing-for-woocommerce\/assets\/screenshot-5.png?rev=3674890","caption":"My Account \u2192 Orders: customers can use \"View Invoice\" to download their own order invoice."}],"raw_content":"<!--section=description-->\n<p><strong>Kitgenix PDF Invoicing for WooCommerce<\/strong> generates PDF order documents locally from WooCommerce data. It supports invoices, receipts, packing slips, credit notes, pro forma invoices, delivery notes and statements, with configurable numbering, templates, email attachments and customer downloads.<\/p>\n\n<p>PDF rendering happens on the WordPress server using the bundled Dompdf library. The plugin does not require a hosted Kitgenix invoicing account and does not send order contents to an external invoicing service in order to produce the PDF.<\/p>\n\n<p>It is designed for store owners, finance teams, fulfilment staff and support teams that need repeatable WooCommerce paperwork and a controlled record of document numbers\/history.<\/p>\n\n<p>Developed by <a href=\"https:\/\/kitgenix.com\/\">Kitgenix<\/a>.<\/p>\n\n<h4>WooCommerce PDF Document Types<\/h4>\n\n<p>The codebase defines seven document types:<\/p>\n\n<ul>\n<li>Invoice.<\/li>\n<li>Receipt.<\/li>\n<li>Packing Slip.<\/li>\n<li>Credit Note.<\/li>\n<li>Pro Forma Invoice.<\/li>\n<li>Delivery Note.<\/li>\n<li>Statement.<\/li>\n<\/ul>\n\n<p>Each type can use its own generation rules and can be enabled\/disabled according to the plugin's settings. Rules can consider WooCommerce order status and payment state so a document is only offered\/generated when it makes sense for the store's workflow.<\/p>\n\n<h4>PDF Invoice Features<\/h4>\n\n<ul>\n<li>Local PDF generation with bundled Dompdf.<\/li>\n<li>Seven document types.<\/li>\n<li>Four bundled visual templates: Standard, Simple, Modern and Business.<\/li>\n<li>Company logo, address and tax\/VAT registration details.<\/li>\n<li>Configurable document colours and presentation settings.<\/li>\n<li>Custom CSS controls used by the PDF renderer.<\/li>\n<li>Optional uploaded custom fonts supported by the font manager.<\/li>\n<li>Token-based document-number formats.<\/li>\n<li>Zero-padding, prefixes and sequence controls.<\/li>\n<li>Sequence reset options including calendar\/fiscal-year scenarios supported by settings.<\/li>\n<li>Separate credit-note identity\/history handling.<\/li>\n<li>Atomic database-backed sequence table for collision-resistant numbering.<\/li>\n<li>Automatic WooCommerce email attachments.<\/li>\n<li>Test email workflow for configured attachment mapping.<\/li>\n<li>Customer downloads from My Account.<\/li>\n<li>Guest document access using a valid WooCommerce order key where the relevant route\/action permits it.<\/li>\n<li>Admin order meta box\/actions for generating and retrieving documents.<\/li>\n<li>Bulk generation\/download archive workflows.<\/li>\n<li>Order-list filtering for document state.<\/li>\n<li>Persistent document archive\/history where enabled.<\/li>\n<li>Regenerate and void controls with history records.<\/li>\n<li>Tax terminology\/localisation packs.<\/li>\n<li>Custom order fields and notes in document output where configured.<\/li>\n<li>WooCommerce HPOS compatibility handling.<\/li>\n<li>Developer filters\/actions for output, identifiers, custom CSS and related document behaviour.<\/li>\n<\/ul>\n\n<h4>Four Bundled Invoice Templates<\/h4>\n\n<p>Standard, Simple, Modern and Business templates are included in the plugin. They share the configured business identity but use different layout\/presentation choices.<\/p>\n\n<p>The template files are local to the plugin; PDF output is not generated by loading a hosted HTML template from Kitgenix.<\/p>\n\n<h4>Document Numbering and Sequences<\/h4>\n\n<p>Document identity is more than a filename. The plugin includes a sequence table and token-based formatting so invoices\/other documents can receive consistent identifiers with prefixes and zero-padding.<\/p>\n\n<p>Sequence periods can be configured so numbering can continue indefinitely or reset according to the supported calendar\/fiscal-year rules. The sequence table is used to avoid two concurrent generation requests selecting the same next number.<\/p>\n\n<p>Credit notes have their own mapping\/history logic so refund-related documents can be tracked separately from the main invoice sequence where configured.<\/p>\n\n<h4>Generation Rules<\/h4>\n\n<p>A document type can be gated by order status\/payment conditions. This lets stores avoid, for example, exposing a final invoice at a point in the order lifecycle where their accounting workflow expects a pro forma document instead.<\/p>\n\n<p>The same availability checks are used by customer\/admin output paths so a document button is not simply cosmetic if the order does not meet its configured rule.<\/p>\n\n<h4>Automatic Email Attachments<\/h4>\n\n<p>Administrators can map document types to WooCommerce email IDs. When a mapped email is generated and the document is available for the order, the plugin can create\/use the relevant PDF and attach it to the outgoing message.<\/p>\n\n<p>A test-send workflow is included so administrators can verify email attachment configuration without placing a real new order for every test.<\/p>\n\n<p>Temporary files generated for email delivery are cleaned up after use.<\/p>\n\n<h4>Customer Downloads<\/h4>\n\n<p>Customer-facing actions can add document downloads to WooCommerce My Account\/order areas. The plugin includes invoice and credit-note download handling and validates the order\/customer context before serving protected order documents.<\/p>\n\n<p>Guest access can use WooCommerce's order key in the supported flow, allowing legitimate guest purchasers to retrieve an eligible document without being treated as an arbitrary anonymous request.<\/p>\n\n<h4>Persistent PDF Archive and History<\/h4>\n\n<p>When persistent archive mode is enabled, generated documents can be stored under a hardened uploads subdirectory with metadata tracking the archived entries. Administrators can regenerate or void documents, with history events recorded against the order\/document.<\/p>\n\n<p>This provides a clearer audit trail than silently replacing a previous PDF without recording that an administrator regenerated it.<\/p>\n\n<p>The exact accounting\/legal retention period remains the site owner's responsibility; the plugin does not claim to determine jurisdiction-specific compliance requirements automatically.<\/p>\n\n<h4>Bulk Document Export<\/h4>\n\n<p>WooCommerce order bulk actions can generate a batch archive for selected orders\/documents. The plugin creates a downloadable archive file for the requested set instead of requiring an administrator to open every order and download each PDF individually.<\/p>\n\n<h4>Tax and Localisation<\/h4>\n\n<p>The document display layer includes configurable tax terminology and localisation packs so labels can be adapted for VAT, GST, Sales Tax or other terminology supported by the plugin's configuration.<\/p>\n\n<p>Order totals and line items are taken from WooCommerce's order data, helping PDFs reflect the taxes\/totals WooCommerce has already calculated rather than introducing an independent tax-calculation engine.<\/p>\n\n<h4>Branding, Custom Fonts and CSS<\/h4>\n\n<p>Business identity settings include company details, logo and visual choices. The plugin also contains a custom-font manager that accepts supported font files and registers them with Dompdf for local rendering.<\/p>\n\n<p>Custom document CSS can be filtered\/sanitised through the plugin's rendering pipeline. Administrators should keep custom CSS print-focused and test all enabled templates after significant visual changes.<\/p>\n\n<h4>Security and Data Handling<\/h4>\n\n<p>PDF generation uses local WooCommerce order data. Download\/admin actions are protected by the applicable WooCommerce\/WordPress capability, order-key and nonce checks in their context.<\/p>\n\n<p>Persistent archive directories are hardened by the plugin, and temporary generated files are removed after use where the workflow does not require long-term storage.<\/p>\n\n<p>The plugin does not transmit order contents to Kitgenix to generate PDFs. External requests used by the shared admin Hub\/fonts are documented separately under <strong>External Services<\/strong>.<\/p>\n\n<h4>Developer Extensibility<\/h4>\n\n<p>The codebase exposes filters\/actions for document output and generation decisions, custom CSS, custom order fields and other integration points. Document types and renderer modules are separated into classes so integrations can modify supported output without editing bundled template files directly.<\/p>\n\n<p>The developer section below lists the hooks currently documented by the plugin.<\/p>\n\n<h4>Typical Uses<\/h4>\n\n<ul>\n<li>Automatic PDF invoices attached to WooCommerce emails.<\/li>\n<li>Packing slips for warehouse picking\/packing.<\/li>\n<li>Delivery notes included with shipments.<\/li>\n<li>Credit notes for refunded orders.<\/li>\n<li>Pro forma invoices before final invoicing.<\/li>\n<li>Customer self-service invoice downloads from My Account.<\/li>\n<li>Branded receipts for completed orders.<\/li>\n<li>Batch export of documents for finance or fulfilment teams.<\/li>\n<\/ul>\n\n<h3>External Services<\/h3>\n\n<p>This plugin includes a shared \"Kitgenix hub\" component in wp-admin (a single top-level \"Kitgenix\" menu page shared across all installed Kitgenix plugins) which may fetch publicly available plugin metadata \u2013 active install counts, star ratings, and icon\/banner artwork \u2013 from WordPress.org using WordPress core's <code>plugins_api()<\/code> function. This request is only made when an administrator views the Kitgenix hub page, sends only the relevant plugin slugs, and is cached for up to 24 hours using WordPress transients to minimise repeat calls:<\/p>\n\n<ul>\n<li>Transient: <code>kitgenix_hub_wporg_active_installs_v1<\/code><\/li>\n<li>Transient: <code>kitgenix_hub_wporg_ratings_v1<\/code><\/li>\n<li>Transient: <code>kitgenix_hub_wporg_media_v1<\/code><\/li>\n<\/ul>\n\n<p>No order data, customer data, or store content is ever sent as part of these requests. WordPress.org's API is governed by the WordPress.org privacy policy (https:\/\/wordpress.org\/about\/privacy\/).<\/p>\n\n<p>Aside from this, PDF generation happens entirely on your own server using the bundled Dompdf library. No order or customer data is sent to any third-party PDF generation, invoicing, or storage service.<\/p>\n\n<h3>Developers<\/h3>\n\n<p>Text domain:\nkitgenix-pdf-invoicing-for-woocommerce<\/p>\n\n<p>Architecture:\n- Modular plugin with Admin\/Settings\/Invoicing\/Email\/Frontend modules\n- Document types registry (extendable) with built-in invoice, receipt, packing slip, credit note, pro forma invoice, delivery note, and statement types\n- Template system with theme overrides + HTML\/CSS filters\n- Secure download endpoints with nonce\/capability checks and optional order key validation\n- Token-based numbering engine using an atomic database sequence table (with a non-atomic option-based fallback)\n- Rule-based document availability controls by type, order status, and payment state\n- Document status (issued\/voided) and per-document history log, independent of the archived PDF file<\/p>\n\n<p>Numbering tokens available in settings:\n- {prefix}\n- {order_number}\n- {order_id}\n- {sequence}\n- {refund_sequence}\n- {year}\n- {yy}\n- {month}\n- {day}\n- {country}\n- {billing_country}\n- {shipping_country}\n- {fiscal_year}\n- {fiscal_year_short}\n- {fiscal_year_start}\n- {fiscal_year_end}<\/p>\n\n<p>Key filters:\n- kitgenix_pdf_invoicing_modules\n- kitgenix_pdf_document_types\n- kitgenix_pdf_document_enabled\n- kitgenix_pdf_document_user_can_download\n- kitgenix_pdf_document_filename\n- kitgenix_pdf_batch_archive_filename\n- kitgenix_pdf_persistent_archive_enabled\n- kitgenix_pdf_archive_relative_root\n- kitgenix_pdf_invoice_filename (back-compat)\n- kitgenix_pdf_document_attachment (inline vs download)\n- kitgenix_pdf_document_template_path\n- kitgenix_pdf_document_html\n- kitgenix_pdf_invoice_html (back-compat)\n- kitgenix_pdf_document_custom_css\n- kitgenix_pdf_document_lang\n- kitgenix_pdf_document_title\n- kitgenix_pdf_document_body_class\n- kitgenix_pdf_show_shipping_address\n- kitgenix_pdf_email_document_map\n- kitgenix_pdf_email_attach_document\n- kitgenix_pdf_document_identifier\n- kitgenix_pdf_document_number_context\n- kitgenix_pdf_document_number_format\n- kitgenix_pdf_sequence_use_table\n- kitgenix_dompdf_enable_php (advanced; default false)<\/p>\n\n<p>Key actions:\n- kitgenix_before_stream_pdf_document\n- kitgenix_after_stream_pdf_document\n- kitgenix_before_stream_pdf_invoice (back-compat)\n- kitgenix_after_stream_pdf_invoice (back-compat)\n- kitgenix_pdf_document_archived\n- kitgenix_pdf_document_regenerated\n- kitgenix_pdf_document_void_status_changed\n- Template hooks:\n  - kitgenix_pdf_before_document \/ kitgenix_pdf_after_document\n  - kitgenix_pdf_before_document_wrapper \/ kitgenix_pdf_after_document_wrapper\n  - kitgenix_pdf_after_notes\n  - kitgenix_pdf_after_order_data_rows<\/p>\n\n<p>This plugin does not register any shortcodes, REST API routes, custom post types, or custom taxonomies. Integration is entirely via the WordPress action\/filter hooks listed above, WooCommerce order meta boxes and order actions, and the My Account area.<\/p>\n\n<h3>Data Handling<\/h3>\n\n<ul>\n<li>Plugin settings stored in a single option: <code>kitgenix_pdf_invoicing_settings<\/code>.<\/li>\n<li>Admin activity\/event log (settings saves, generation failures, skipped documents, failed attachments) stored in: <code>kitgenix_pdf_invoicing_event_log<\/code>.<\/li>\n<li>Anonymous generation metrics stored in: <code>kitgenix_pdf_invoicing_for_woocommerce_metrics<\/code>.<\/li>\n<li>Legacy (non-atomic fallback) numbering counters stored in: <code>kitgenix_pdf_invoicing_for_woocommerce_number_sequences<\/code>.<\/li>\n<li>Atomic numbering counters stored in a dedicated database table (<code>{$wpdb-&gt;prefix}kitgenix_pdf_sequences<\/code>).<\/li>\n<li>Upgrade\/migration version marker stored in: <code>kitgenix_pdf_invoicing_for_woocommerce_db_version<\/code>.<\/li>\n<li>Custom uploaded font metadata stored in: <code>kitgenix_pdf_invoicing_for_woocommerce_custom_fonts<\/code>.<\/li>\n<li>Document identifiers\/history stored on the order to keep documents stable:\n\n<ul>\n<li><code>_kitgenix_pdf_invoicing_for_woocommerce_invoice_number<\/code><\/li>\n<li><code>_kitgenix_pdf_invoicing_for_woocommerce_invoice_date<\/code><\/li>\n<li><code>_kitgenix_pdf_invoicing_for_woocommerce_packing_slip_number<\/code><\/li>\n<li><code>_kitgenix_pdf_invoicing_for_woocommerce_packing_slip_date<\/code><\/li>\n<li><code>_kitgenix_pdf_invoicing_for_woocommerce_receipt_number<\/code><\/li>\n<li><code>_kitgenix_pdf_invoicing_for_woocommerce_receipt_date<\/code><\/li>\n<li><code>_kitgenix_pdf_invoicing_for_woocommerce_credit_note_count<\/code><\/li>\n<li><code>_kitgenix_pdf_invoicing_for_woocommerce_credit_note_history<\/code><\/li>\n<li><code>_kitgenix_pdf_invoicing_for_woocommerce_credit_note_refund_map<\/code><\/li>\n<li><code>_kitgenix_pdf_invoicing_for_woocommerce_archived_documents<\/code><\/li>\n<\/ul><\/li>\n<li>Archived PDFs stored in uploads and reused as immutable document copies when available.<\/li>\n<li>Uploaded custom font files stored under the plugin's hardened uploads sub-directory.<\/li>\n<li>Batch ZIP exports generated on demand (temporary files, deleted after download).<\/li>\n<li>Email attachments generated as temporary files and cleaned up automatically.<\/li>\n<li>No customer data is sent to a third-party PDF generation service; rendering happens locally using the bundled Dompdf library.<\/li>\n<\/ul>\n\n<h3>Security &amp; Privacy<\/h3>\n\n<ul>\n<li>All admin actions protected with nonces and capability checks.<\/li>\n<li>Inputs sanitised; outputs escaped appropriately.<\/li>\n<li>Dompdf PHP execution disabled by default. Enable only if you understand the risk:\nadd_filter( 'kitgenix_dompdf_enable_php', '__return_true' );<\/li>\n<\/ul>\n\n<p>Security identifiers (exact):\n- Admin meta box downloads use <code>admin-post.php<\/code> actions <code>kitgenix_admin_stream_invoice<\/code>, <code>kitgenix_admin_stream_receipt<\/code>, <code>kitgenix_admin_stream_packing_slip<\/code>, <code>kitgenix_admin_stream_credit_note<\/code>, <code>kitgenix_admin_stream_pro_forma_invoice<\/code>, <code>kitgenix_admin_stream_delivery_note<\/code>, and <code>kitgenix_admin_stream_statement<\/code>, protected by query arg <code>nonce<\/code> created\/verified with nonce action <code>kitgenix_admin_pdf<\/code>.\n- WordPress action hooks for those admin-post actions: <code>admin_post_kitgenix_admin_stream_invoice<\/code>, <code>admin_post_kitgenix_admin_stream_receipt<\/code>, <code>admin_post_kitgenix_admin_stream_packing_slip<\/code>, <code>admin_post_kitgenix_admin_stream_credit_note<\/code>, <code>admin_post_kitgenix_admin_stream_pro_forma_invoice<\/code>, <code>admin_post_kitgenix_admin_stream_delivery_note<\/code>, and <code>admin_post_kitgenix_admin_stream_statement<\/code>.\n- Document status actions (regenerate\/void) use <code>admin_post_kitgenix_admin_regenerate_document<\/code> and <code>admin_post_kitgenix_admin_void_document<\/code>, gated on <code>manage_woocommerce<\/code> and a type-and-order-scoped nonce.\n- Frontend document downloads use the optional <code>_wpnonce<\/code> value created\/verified with nonce action <code>kitgenix_download_{doc_type}_{order_id}<\/code>.\n- WooCommerce order action key: <code>kitgenix_download_pdf_invoice<\/code> (hook: <code>woocommerce_order_action_kitgenix_download_pdf_invoice<\/code>).\n- WooCommerce bulk action keys: <code>kitgenix_pdf_batch_export_invoice<\/code>, <code>kitgenix_pdf_batch_export_packing_slip<\/code>, <code>kitgenix_pdf_batch_export_receipt<\/code>, <code>kitgenix_pdf_batch_export_credit_note<\/code>, <code>kitgenix_pdf_batch_export_pro_forma_invoice<\/code>, <code>kitgenix_pdf_batch_export_delivery_note<\/code>, and <code>kitgenix_pdf_batch_export_statement<\/code>.<\/p>\n\n<p>Admin page hook suffix:\n- <code>kitgenix_page_kitgenix-pdf-invoicing-settings<\/code><\/p>\n\n<p>PDF generation is performed locally on your server using Dompdf. This plugin does not send customer data to a third-party PDF generation API.<\/p>\n\n<h3>Uninstall<\/h3>\n\n<p>Uninstall removes the plugin settings option (<code>kitgenix_pdf_invoicing_settings<\/code>), the admin event log option (<code>kitgenix_pdf_invoicing_event_log<\/code>), the metrics option (<code>kitgenix_pdf_invoicing_for_woocommerce_metrics<\/code>), the numbering sequence option (<code>kitgenix_pdf_invoicing_for_woocommerce_number_sequences<\/code>), the atomic numbering sequences database table, the custom fonts metadata option, and the upgrade\/migration version marker (<code>kitgenix_pdf_invoicing_for_woocommerce_db_version<\/code>) when uninstalled via WordPress.\nIt also deletes the activation redirect transient: <code>kitgenix_pdf_invoicing_for_woocommerce_do_activation_redirect<\/code>.\nOrder meta, archived document metadata, archived PDF files, document history, and uploaded custom font files are intentionally preserved to avoid accidental loss of invoice, receipt, packing slip, or credit note history. Site owners who want the uploaded font files removed too can delete the relevant uploads sub-folder manually.<\/p>\n\n<h3>Support Development<\/h3>\n\n<p>If this plugin helps you generate clean WooCommerce PDFs and reduces admin work, you can support ongoing development with a one-off donation via PayPal:\nhttps:\/\/www.paypal.com\/donate\/?hosted_button_id=KALF36K6JJ9B2<\/p>\n\n<h3>Third-Party Libraries<\/h3>\n\n<p>This plugin bundles Dompdf (LGPL-2.1) and its dependencies (php-font-lib, php-svg-lib, html5-php, php-css-parser, thecodingmachine\/safe) via Composer. Their license files are included under <code>vendor\/<\/code> in the distributed plugin package. See https:\/\/github.com\/dompdf\/dompdf for the upstream project.<\/p>\n\n<h3>Credits<\/h3>\n\n<p>Built with \u2764\ufe0e by @kitgenix - https:\/\/kitgenix.com\nBundled library: Dompdf (see vendor\/ for licenses)<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install via Plugins \u2192 Add New (search for \"Kitgenix PDF Invoicing\"), or upload the plugin ZIP file.<\/li>\n<li>Activate the plugin. WooCommerce must already be installed and active \u2013 the plugin will deactivate itself with a notice if it isn't.<\/li>\n<li>Go to WooCommerce \u2192 Orders and open any order to see the \"Kitgenix PDF Invoicing\" meta box with document download actions.<\/li>\n<li>Go to the Kitgenix PDF Invoicing settings page to configure your company details, logo, numbering, template style, and email attachment mapping.<\/li>\n<li>Optional: enable customer-facing downloads and My Account order actions in settings.<\/li>\n<\/ol>\n\n<p>PDFs are rendered with the bundled Dompdf library; no external service or API key is required. Batch ZIP export uses the PHP <code>zip<\/code> extension when available, with an automatic fallback to WordPress's built-in ZIP support if it isn't.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20require%20woocommerce%3F\"><h3>Does this plugin require WooCommerce?<\/h3><\/dt>\n<dd><p>Yes. WooCommerce must be installed and active. Every document type, download, and email attachment is generated from WooCommerce order data.<\/p><\/dd>\n<dt id=\"are%20pdf%20invoices%20generated%20automatically%3F\"><h3>Are PDF invoices generated automatically?<\/h3><\/dt>\n<dd><p>Documents are generated on demand \u2013 when downloaded, or when a WooCommerce email is sent with that document type mapped to it. There is no scheduled\/cron-based bulk generation; each document is rendered the first time it is needed and then archived for reuse.<\/p><\/dd>\n<dt id=\"can%20customers%20download%20their%20own%20invoices%3F\"><h3>Can customers download their own invoices?<\/h3><\/dt>\n<dd><p>Yes, if enabled in settings. Customers can download invoices and (once refunds exist) credit notes from the order details screen and the My Account Orders table. Guests can also be authorised with a valid WooCommerce order key.<\/p><\/dd>\n<dt id=\"can%20i%20bulk-generate%20or%20bulk-download%20invoices%3F\"><h3>Can I bulk-generate or bulk-download invoices?<\/h3><\/dt>\n<dd><p>Yes. From the WooCommerce orders list, select a set of orders and run a batch ZIP export for invoices, packing slips, receipts, credit notes, pro forma invoices, delivery notes, or statements.<\/p><\/dd>\n<dt id=\"where%20are%20the%20generated%20pdfs%20stored%3F\"><h3>Where are the generated PDFs stored?<\/h3><\/dt>\n<dd><p>Once a document is issued, an immutable copy is archived in the uploads directory and reused for later downloads instead of re-rendering a different version. Temporary files used for email attachments and batch ZIP exports are deleted automatically after use. No customer data is sent to a third-party PDF generation service.<\/p><\/dd>\n<dt id=\"can%20i%20customise%20the%20invoice%20template%3F\"><h3>Can I customise the invoice template?<\/h3><\/dt>\n<dd><p>Yes. Choose from four bundled template packs (Standard, Simple, Modern, Business), fine-tune the layout with the built-in visual designer (header alignment, logo scale, density, panels, table style, totals emphasis, footer alignment), or copy templates into your theme at <code>kitgenix-pdf-invoicing-for-woocommerce\/{style}\/<\/code> for full control.<\/p><\/dd>\n<dt id=\"can%20i%20add%20my%20company%20logo%2C%20address%2C%20and%20tax%2Fvat%20number%3F\"><h3>Can I add my company logo, address, and tax\/VAT number?<\/h3><\/dt>\n<dd><p>Yes. Company name, address, email, phone, logo, and tax\/VAT ID are all configurable and appear on every generated document.<\/p><\/dd>\n<dt id=\"can%20i%20show%20custom%20order%20fields%2C%20such%20as%20tracking%20numbers%3F\"><h3>Can I show custom order fields, such as tracking numbers?<\/h3><\/dt>\n<dd><p>Yes. Add custom order meta rows in settings using one entry per line in the format <code>meta_key|Label<\/code>.<\/p><\/dd>\n<dt id=\"does%20it%20support%20vat%2C%20gst%2C%20or%20sales%20tax%20terminology%3F\"><h3>Does it support VAT, GST, or Sales Tax terminology?<\/h3><\/dt>\n<dd><p>Yes. A localisation pack switches document titles and tax wording (for example, \"Tax Invoice\" for Australia GST), with manual overrides available for the tax label and tax registration label. You can also switch between tax-inclusive and tax-exclusive price display.<\/p><\/dd>\n<dt id=\"is%20this%20compatible%20with%20woocommerce%20hpos%20%28high-performance%20order%20storage%29%3F\"><h3>Is this compatible with WooCommerce HPOS (High-Performance Order Storage)?<\/h3><\/dt>\n<dd><p>Yes. The plugin declares HPOS compatibility and its order integrations, meta box, and admin order-list filter work with both HPOS and legacy post-based order storage.<\/p><\/dd>\n<dt id=\"how%20does%20credit%20note%20numbering%20work%3F\"><h3>How does credit note numbering work?<\/h3><\/dt>\n<dd><p>Credit notes become available once an order has at least one refund, and are numbered against the refund itself (not its position in a list), so deleting or reordering refunds can't desynchronise or duplicate numbers.<\/p><\/dd>\n<dt id=\"can%20documents%20be%20regenerated%20or%20voided%3F\"><h3>Can documents be regenerated or voided?<\/h3><\/dt>\n<dd><p>Yes. Staff can regenerate an issued document from the order's current data (the previous file is kept, not overwritten) or void\/unvoid a document without touching its archived file. Both actions are logged in a per-document history on the order screen. This provides an audit trail but does not by itself guarantee compliance with local invoicing or record-keeping requirements.<\/p><\/dd>\n<dt id=\"can%20i%20attach%20pdfs%20to%20woocommerce%20emails%3F\"><h3>Can I attach PDFs to WooCommerce emails?<\/h3><\/dt>\n<dd><p>Yes. Map document types to WooCommerce email workflows in settings, preview which documents are mapped for a specific order, and send a test email with only the PDF attachments before relying on the live workflow.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20support%20custom%20document%20types%3F\"><h3>Does the plugin support custom document types?<\/h3><\/dt>\n<dd><p>Developers can extend the document type registry via the <code>kitgenix_pdf_document_types<\/code> filter to add custom document types alongside the built-in ones.<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20add%20any%20shortcodes%20or%20rest%20api%20endpoints%3F\"><h3>Does this plugin add any shortcodes or REST API endpoints?<\/h3><\/dt>\n<dd><p>No. The plugin does not register any shortcodes, REST API routes, custom post types, or custom taxonomies. All functionality lives in the WooCommerce order screen, plugin settings, and My Account area, and is extendable via the actions and filters listed in the Developers section.<\/p><\/dd>\n<dt id=\"what%20happens%20to%20my%20invoices%20if%20i%20uninstall%20the%20plugin%3F\"><h3>What happens to my invoices if I uninstall the plugin?<\/h3><\/dt>\n<dd><p>Archived PDF files, document history, and order meta are intentionally preserved on uninstall so you don't lose invoice, receipt, packing slip, or credit note records. Only the plugin's own settings and tracking options are removed.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0 (31 August 2026)<\/h4>\n\n<ul>\n<li>New: Documents now carry an explicit status \u2013 Not generated, Issued, or Voided \u2013 visible per document type on the order screen, without ever silently replacing a historic file.<\/li>\n<li>New: Added a \"Regenerate\" action that lets staff deliberately re-render an already-issued PDF using the order's current data. The previously issued file is renamed and retained rather than deleted or overwritten, and the action is logged with the acting user, timestamp, and an optional reason. This does not itself guarantee compliance with jurisdiction-specific invoicing or record-keeping laws.<\/li>\n<li>New: Added \"Void\" and \"Unvoid\" actions that change a document's status without modifying or deleting its archived PDF file, creating a metadata-only audit entry.<\/li>\n<li>New: Added a per-document history log showing issued, regenerated, voided, and unvoided events, including date, acting user, and document number, directly on the WooCommerce order screen.<\/li>\n<li>New: Added a System Status tab under Settings reporting PHP, WordPress, WooCommerce, and Dompdf versions, HPOS status, uploads\/archive writability, active template, PHP memory limit, and execution limits without exposing customer data or secrets.<\/li>\n<li>New: Added settings import\/export under Settings \u2192 System Status using JSON files. Imports are validated field-by-field against a strict whitelist, and exported files exclude the logo media attachment ID because WordPress attachment IDs are not portable between sites.<\/li>\n<li>New: Added optional custom font uploads under Settings \u2192 Brand &amp; Styling. Only local <code>.ttf<\/code>, <code>.otf<\/code>, and <code>.woff<\/code> files are accepted, validated by both extension and binary file signature, with files stored inside the plugin's existing hardened uploads directory. Remote font URLs are not accepted.<\/li>\n<li>New: Added a \"Has PDF documents\" filter to the WooCommerce Orders screen for both legacy and HPOS\/custom-order-table views, allowing administrators to quickly find orders with or without invoices or credit notes.<\/li>\n<li>New: Redesigned the entire admin experience around the shared Kitgenix design system, with a sticky topbar, brand navigation, and a quick link to the Kitgenix Hub from every screen.<\/li>\n<li>New: Added in-page settings search with \"\/\" and Cmd\/Ctrl+K shortcuts so administrators can quickly find a field or section without manually navigating through tabs.<\/li>\n<li>New: Added a light\/dark theme toggle for the admin screens, with the selected preference remembered between visits and a sensible default based on the browser's preferred colour scheme.<\/li>\n<li>New: Added a responsive mobile navigation menu for Kitgenix admin screens on narrower displays.<\/li>\n<li>Improved: Settings sections now render as clearly separated cards with icons, while checkboxes have been replaced with toggle switches throughout Settings, the email attachment matrix, and document generation rules for clearer on\/off states.<\/li>\n<li>Improved: Redesigned tables, notices, badges, and button groups across the Settings, Email Preview &amp; Test Send, and Support screens for a more consistent Kitgenix admin experience.<\/li>\n<li>Improved: The Kitgenix Hub page now shares the same topbar and brand header as the plugin's settings screens and includes Image Optimizer alongside the other Kitgenix plugins that can be installed, activated, and managed from one place.<\/li>\n<li>Improved: The WooCommerce order screen meta box now displays invoice and credit note numbers as compact badges instead of plain text.<\/li>\n<li>Improved: The Log tab now displays entries in a searchable, paginated table containing time, context, outcome, and a plain-English note instead of a plain text block.<\/li>\n<li>Improved: Invoices or credit notes that fail to attach to an order email are now recorded in the Log tab, ensuring emails sent without their expected PDF attachment are visible to administrators.<\/li>\n<li>Improved: Batch invoice generation now distinguishes orders skipped because they are not eligible for a document from orders that genuinely failed to generate, with the reason recorded in the Log tab.<\/li>\n<li>Improved: Added a reference table to the Log tab explaining what each recorded category means and whether administrator action is required.<\/li>\n<li>Improved: The Support tab is now three focused cards \u2013 a donate card with a collapsible monthly-amount picker, a \"what your support funds\" summary, and a \"get involved\" panel for reviews and plugin links \u2013 replacing the previous stack of donate, trust, and community cards.<\/li>\n<li>Improved: Moved the Log tab directly before Support in the admin navigation for a more logical workflow.<\/li>\n<li>Security: Document numbers are now assigned through a dedicated database table using an atomic increment, closing a race condition where two simultaneous requests could previously receive the same supposedly unique invoice, receipt, or credit-note number under load. Existing counters are migrated automatically and idempotently, with no numbers reset or reused.<\/li>\n<li>Security: Archived PDF storage directories are now hardened with <code>index.php<\/code> and <code>.htaccess<\/code> guards when created, adding defence in depth alongside the existing nonce, order-key, and capability checks that protect every document download.<\/li>\n<li>Security: Order-scoped actions \u2013 including admin order actions, order meta box downloads, and admin-post document streaming \u2013 now also verify WooCommerce's object-aware <code>edit_shop_order<\/code> capability for the specific order in addition to the existing general capability checks.<\/li>\n<li>Security: Custom font uploads are restricted to validated local font files and checked using both their extension and binary file signature before being stored inside the plugin's hardened uploads directory.<\/li>\n<li>Fix: Credit note numbering is now keyed to the stable WooCommerce refund ID instead of the refund list's array position, preventing deleted or reordered refunds from desynchronising, skipping, or duplicating credit note numbers. Existing credit note history is migrated automatically.<\/li>\n<li>Fix: PDF generation errors, including memory exhaustion or execution time limits on very large orders, are now caught and logged instead of risking an uncaught fatal error while generating an invoice or credit note.<\/li>\n<li>Fix: Corrected the MultiStore plugin listing in the Kitgenix Hub, including its name, slug, and plugin file path, so install, activate, and open actions now target the correct plugin.<\/li>\n<li>Fix: Empty document download button rows are no longer rendered in the WooCommerce order meta box when no PDF downloads are available for the order.<\/li>\n<li>Fix: Admin notices rendered on the plugin settings page can now be dismissed using a close button.<\/li>\n<li>Fix: The \"Preview email attachments\" and \"Send test email with PDFs\" buttons now have appropriate spacing from the field above them.<\/li>\n<li>Fix: Number inputs, including the email preview Order ID field, are no longer cramped to a fixed 50px width.<\/li>\n<li>Dev: Refreshed dependencies using <code>composer install<\/code> and <code>composer audit<\/code>, including Dompdf 3.1.6, with no known security advisories detected. Dompdf and its dependencies' bundled licence files remain included for redistribution.<\/li>\n<li>Dev: Added a shared <code>kitgenix-admin-components.js<\/code> controller providing toast and inline save confirmations, collapsible cards, copy-to-clipboard controls, and live table search for consistent behaviour across Kitgenix plugins.<\/li>\n<li>Dev: Migrated hardcoded Kitgenix brand colours in the WooCommerce order meta box and admin stylesheets to shared CSS custom properties for consistent theming across plugins.<\/li>\n<li>Dev: Refreshed and reorganised the Kitgenix logo and icon asset set used throughout the admin UI and Kitgenix Hub.<\/li>\n<\/ul>","raw_excerpt":"Generate WooCommerce PDF invoices, receipts, packing slips, credit notes and other documents with local PDF rendering.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/270053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=270053"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kitgenix"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=270053"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=270053"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=270053"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=270053"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=270053"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=270053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}