Advertisement
LoganYoung87

Untitled

Jun 13th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. StringBuilder sb = new StringBuilder();
  2.            
  3. sb.AppendLine("html markup goes here");
  4.  
  5. PdfConvert.Environment.Debug = false;
  6. PdfConvert.ConvertHtmlToPdf(new PdfDocument { Html = sb.ToString() }, new PdfOutput
  7. {
  8.     OutputFilePath = filePath
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement