Esempio n. 1
0
 private void GeneratePdfFromHtml(string newhtml, string filePath)
 {
     Logger.Debug("GeneratePdfFromHtml: Start");
     try
     {
         byte[] pdfFile = DocumentTemplate.ConvertToPdfBuffer(newhtml);
         File.WriteAllBytes(filePath, pdfFile);
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
     }
     Logger.Debug("GeneratePdfFromHtml: End");
 }