Tag Archives: HTMLtoPDF

HTMLtoPdf – Converts HTML content to PDF using chrome executable – HTML Dev Feed

HTMLtoPdf – Converts HTML content to PDF using chrome executable var url = @”d:Vaccination.html”; var chromePath = @”C:Program FilesGoogleChromeApplicationchrome.exe”; // returns byte array of file var pdf = new ChromeOptions().AddOptions(b => { b.Headless(); b.DisableGPU(); b.WithoutHeader(); }).Pdf(new ChromeDetails() { ChromePath = chromePath, HtmlPath = url }); File.WriteAllBytes(@”d:print.pdf”, pdf); Enter fullscreen mode Exit fullscreen mode Checkout more…

Read More