{"product_id":"generate-pdf-invoices-email-via-gmail-with-pdfmill-workflow","title":"Generate PDF Invoices \u0026 Email via Gmail with pdfmill Workflow","description":"\u003ch3\u003eGenerate a PDF invoice and automatically email it via Gmail with the pdfmill workflow\u003c\/h3\u003e\n\u003cp\u003eTurn structured invoice data into a polished PDF invoice using \u003cstrong\u003epdfmill\u003c\/strong\u003e, then deliver it instantly to your customer by sending an email with the PDF attached through \u003cstrong\u003eGmail\u003c\/strong\u003e—all inside an \u003cstrong\u003en8n automation workflow\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eManual trigger:\u003c\/strong\u003e Starts when you manually execute the workflow.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreate invoice data:\u003c\/strong\u003e Builds a sample invoice payload including billing details, line items, totals, and the recipient email.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerate PDF with pdfmill:\u003c\/strong\u003e Uses the \u003cstrong\u003epdfmill\u003c\/strong\u003e node (pdf template selected during setup) to generate an invoice PDF from the invoice data.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEmail the invoice via Gmail:\u003c\/strong\u003e Sends the generated PDF to the customer using the \u003cstrong\u003eGmail\u003c\/strong\u003e node, attaching the output from the PDF generation step.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS billing operators\u003c\/strong\u003e who need a quick way to produce and email invoices from a JSON invoice payload.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n users\u003c\/strong\u003e testing invoice automation before wiring it to a source like Stripe data or a webhook.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAutomation engineers\u003c\/strong\u003e who want a clear template for mapping invoice fields into pdfmill and delivering the PDF through Gmail.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes \/ integrations:\u003c\/strong\u003e \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003egmail\u003c\/code\u003e, \u003ccode\u003emanual trigger\u003c\/code\u003e, and \u003ccode\u003en8n-nodes-generate-pdfgenerate\u003c\/code\u003e (pdfmill PDF generation).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup requirements:\u003c\/strong\u003e Add a \u003cstrong\u003epdfmill credential\u003c\/strong\u003e and select the invoice template in the PDF generation step.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEmail credentials:\u003c\/strong\u003e Add a \u003cstrong\u003eGmail OAuth credential\u003c\/strong\u003e (or replace the email step with SMTP) and ensure the sender account has permission to send email attachments.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eData mapping:\u003c\/strong\u003e Replace the sample invoice JSON with your real invoice data and verify the \u003cstrong\u003erecipient email\u003c\/strong\u003e field used for sending.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45741416415411,"sku":"N8N-17604","price":62.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/cxNT0qSF7iXbtCoSKcdEi_PrWmLalN.png?v=1785316089","url":"https:\/\/buyflowscripts.com\/products\/generate-pdf-invoices-email-via-gmail-with-pdfmill-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}