

for azure functions, we need to use the temp path so we don't get a permission issue

Using var browserFetcher = new BrowserFetcher(new BrowserFetcherOptions() create a browserfetcher object which will handle the downloading of the chrome browser image String name = ().Clean() īool printBackground = ().ToBool(true) Return new BadRequestObjectResult("url not given") Public async Task GenerateThePdf( HttpRequest req, ILogger log) The meat of the function is here: using System net 6 Azure function where I could pass a url and it would create a downloadable PDF from it. net port of the popular Puppeteer system. Then I came across PuppeteerSharp, which is a. SelectPdf came the closest for me but didn't work in Azure on a Linux consumption plan. I also looked at some freeish or open source solutions that were close: There are some expensive paid solutions with lots of bells and whistles like: I also want it to be free and for a special bonus, I want to be able to host it in an Azure function on Linux on the consumption plan. I have tried a handful of open source solutions that partially did what I wanted, but I really just need a system that can take some html or a url and convert it to a pdf. I have spent a ton of time searching the web for solutions that can handle creating PDFs on the fly using some.
