{"product_id":"n8n-form-trigger-generate-invoice-pdfs-with-mintpdf-gmail","title":"n8n Form Trigger: Generate Invoice PDFs with MintPDF + Gmail","description":"\u003ch3\u003eTurn an n8n Form submission into a ready-to-send invoice PDF—instantly\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow captures invoice details from an \u003cstrong\u003en8n Form Trigger\u003c\/strong\u003e, generates a \u003cstrong\u003enumbered HTML invoice\u003c\/strong\u003e, renders it to a \u003cstrong\u003ePDF using MintPDF\u003c\/strong\u003e, then \u003cstrong\u003eemails the PDF via Gmail\u003c\/strong\u003e and returns the same PDF for immediate download.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives invoice requests\u003c\/strong\u003e from an n8n form submission including customer details, billing address, line items, and optional notes.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAdds your invoice settings\u003c\/strong\u003e (seller details, currency, tax rate, payment terms, and invoice prefix) to the incoming data.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates, parses, and calculates totals\u003c\/strong\u003e, computing amounts in integer cents to generate accurate invoice totals.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates an invoice number and due date\u003c\/strong\u003e, then builds the invoice as HTML with the final values.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRenders the HTML to a PDF with MintPDF\u003c\/strong\u003e as an A4 document, including a footer and page numbers.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the PDF invoice by email\u003c\/strong\u003e using Gmail, including the invoice number, amount due, and due date in the message.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns the PDF to the form submitter\u003c\/strong\u003e so they can download the invoice right after submission.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators who need a lightweight \u003cstrong\u003einvoice generation workflow\u003c\/strong\u003e without manual PDF creation.\u003c\/li\u003e\n  \u003cli\u003eFreelancers and agencies collecting invoice details via a form and immediately sending a PDF to clients.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers building a customer-facing workflow that turns structured form input into \u003cstrong\u003eMintPDF-rendered invoices\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes \/ integrations:\u003c\/strong\u003e Form, Code, Gmail, and \u003cstrong\u003en8n-nodes-mintpdf\u003c\/strong\u003e (MintPDF)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup:\u003c\/strong\u003e Install the community node package \u003ccode\u003en8n-nodes-mintpdf\u003c\/code\u003e and configure a MintPDF API credential from \u003ca href=\"https:\/\/mintpdf.dev\" target=\"_blank\" rel=\"noopener\"\u003emintpdf.dev\u003c\/a\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEmail:\u003c\/strong\u003e Connect a Gmail OAuth2 credential for sending the invoice PDF attachment.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInvoice settings:\u003c\/strong\u003e Update seller details, currency, tax rate, payment terms, and invoice prefix.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46172932702387,"sku":"N8N-20601","price":32.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/rsorHoYX32tONg0Y6-T-M_2CaJAVSC.png?v=1791363934","url":"https:\/\/buyflowscripts.com\/products\/n8n-form-trigger-generate-invoice-pdfs-with-mintpdf-gmail","provider":"N8N Commerce","version":"1.0","type":"link"}