Skip to main content

One post tagged with "Scriban"

View All Tags

How to Generate PDF from HTML Using Playwright in C# and .NET

· 19 min read
Michał Szymanowski
Michał Szymanowski
PDFBolt Co-Founder

Generate PDF from HTML using Playwright in C#/.NET

This detailed guide shows you how to use Microsoft Playwright for .NET and C# to generate high-quality PDFs with perfect rendering. Learn how to implement a complete solution that combines Scriban templates with Playwright's powerful browser automation to create pixel-perfect documents. Whether you're building invoices, reports, or any business documents, this step-by-step tutorial provides all the code and explanation you need to integrate PDF generation into your C#-based .NET applications.