Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ironsoftware committed Aug 30, 2022
1 parent 5781982 commit ca06987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void HtmlToPdfExample(string htmlString)
ChromePdfRenderer renderer = new ChromePdfRenderer();

// Render a new PdfDocument using an HTML string
PdfDocument newPdf = renderer.RenderHtmlAsPdf(SampleHtmlString);
PdfDocument newPdf = renderer.RenderHtmlAsPdf(htmlString);

// Save new PDF File
newPdf.SaveAs("pdf_from_html.pdf");
Expand Down

0 comments on commit ca06987

Please sign in to comment.