Skip to content

Instantly share code, notes, and snippets.

View agrigg's full-sized avatar

Austin Grigg agrigg

  • Kalon Creative
  • Canton, GA
View GitHub Profile
@agrigg
agrigg / ABCpdfUtils.cs
Last active April 12, 2022 13:42
ASP.NET MVC example of using ABCpdf to convert HTML to PDF
public static byte[] PDFForHtml(string html)
{
// Create ABCpdf Doc object
var doc = new Doc();
// Add html to Doc
int theID = doc.AddImageHtml(html);
// Loop through document to create multi-page PDF
while (true)