public void Compose(IDocumentContainer container)
private readonly string _title; private readonly List<string> _items; public CustomPdf(string title, List<string> items) => (_title, _items) = (title, items); customizing asp.net core 5.0 pdf
container.Page(page =>
table.ColumnsDefinition(columns =>
await new BrowserFetcher().DownloadAsync(); using var browser = await Puppeteer.LaunchAsync(new LaunchOptions Headless = true ); using var page = await browser.NewPageAsync(); await page.SetContentAsync(html); return await page.PdfDataAsync(new PdfOptions private readonly List<