
Puppeteer will populate the form with some JSON data to pass to the Razor page. In the app, we'll create a form that has a single textbox.

It's just a simple project created with dotnet new webapp. We'll use a typical ASP.NET Core Razor Pages app to render our invoice.


We'll create PDF invoices for our favorite fictitious online store, Tailwind Traders. Today, we'll look at how to render PDFs in Azure Functions using Razor and the C# port of Puppeteer, PuppeteerSharp.Ī common usage of this is generating something like an invoice. A couple of weeks ago, we looked at how to use Puppeteer with Node.js Azure Functions to take screenshots of web pages.
