public static byte[] GenerateFromHtml(PrestacaoServicos dados) { string html = GetHtmlContent(dados); PdfConverter pdf = GetConfigurations(); return(pdf.GeneratePdfBytesFromHtmlString(html)); }
public static byte[] GenerateFromHtml(List <Frequencia> dados) { string cssStyles = @" .fundo_cinza { background-color: #B5B5B5; } .p_init { font-size: 15px; padding-bottom: 30px; } .valor_item { height: 25px; text-align: center; } .head { height: 25px; text-align: center; } .bold { font-weight: bold; }"; string html = GetHtmlContent(dados); PdfConverter pdf = GetConfigurations(); return(pdf.GeneratePdfBytesFromHtmlString(html, cssStyles)); }