Back to Neutrino in Excel
SheetXAI logo
Neutrino logo
Neutrino · Excel Guide

Render HTML Invoices to PDF in Bulk From a Excel workbook Using Neutrino

2026-05-15
5 min read

The Scenario

Your reporting team manages invoice delivery for 80 client accounts. The HTML template for each invoice is stored as a string in column A of an Excel workbook — full HTML documents with client-specific billing data already merged in. They go out as PDF attachments. Today is the last day of the billing cycle. The PDFs need to be attached to emails before end of business.

Your developer is out today. Column B is empty.

The bad version:

  • Research the Neutrino HTML render API, read the documentation, understand the request parameters
  • Attempt to write a VBA macro that calls the API, get stuck on the HTTP request syntax
  • Call a developer colleague, wait for them to have time, get the macro working at 4:45 PM
  • Find out the rendering cut off the invoice footer because of a page height parameter the macro didn't account for

It is now 5 PM. Some clients haven't received their invoices.

The Easy Way: One Prompt in SheetXAI

SheetXAI is an AI agent inside your Excel workbook. Through its built-in Neutrino integration, it renders each HTML invoice string in column A to a PDF and writes the resulting download URL into column B — no API documentation, no VBA, no page height parameters to figure out.

For each HTML string in column A, use Neutrino HTML render to generate a PDF and write the resulting file URL into column B.

What You Get

  • Column B: a downloadable PDF URL for every HTML invoice in column A
  • 80 PDFs generated in one operation, with URLs ready to attach to client emails
  • No scripting, no rendering parameters to configure, no footer cutoff problems

What If the Data Is Not Quite Ready

Some HTML strings appear truncated

For each row in column A, check whether the HTML string appears to be truncated (no closing html tag). Flag any truncated rows with TRUNCATED in column C. For all complete rows, render to PDF with Neutrino and write the file URL in column B.

You need the PDF in A4 size specifically

For each HTML string in column A, use Neutrino HTML render to generate an A4 PDF and write the file URL into column B.

You want to include a suggested file name for each PDF based on the client name in column B

Render all HTML invoices in column A to PDF using Neutrino. Write the file URL in column C. Write a suggested file name in column D using the client name from column B formatted as ClientName-Invoice.pdf.

Full invoice dispatch prep in one shot

Check each HTML string in column A for completeness. Flag truncated rows with TRUNCATED in column C. For all complete rows, render to A4 PDF using Neutrino and write the file URL in column B. Produce a summary showing how many PDFs were generated and how many rows were flagged as truncated.

Try It

Get the 7-day free trial of SheetXAI and open your invoice workbook, then ask SheetXAI to render every HTML string in column A to a PDF with Neutrino and write the download URLs into column B. See also the QR code generation spoke if you're building other client-facing assets from this workbook in the same billing cycle.

Stop memorizing formulas.
Tell your spreadsheet what to do.

Join 4,000+ professionals saving hours every week with SheetXAI.

Learn more