/// <summary>
/// Arma el header de los pdf en una tabla, con titulo y foto
/// </summary>
/// <param name="titulo">string</param>
/// <returns>PdfTable</returns>
public PdfPTable getHeader(string titulo)
{
iTextSharp.text.Font font1 = iTextSharp.text.FontFactory.GetFont(FontFactory.HELVETICA, 15);
iTextSharp.text.Font font2 = iTextSharp.text.FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 15);
PdfPTable tableTitulo = new PdfPTable(2);
float[] widthsTitulo = new float[] { 10f, 3f };
tableTitulo.SetWidths(widthsTitulo);
tableTitulo.WidthPercentage = 100;
tableTitulo.DefaultCell.Border = 0;
string rutaImagen = ConfigurationManager.AppSettings["rutaImgLogo"].ToString();
iTextSharp.text.Image imagen = iTextSharp.text.Image.GetInstance(rutaImagen);
imagen.Border = 0;
imagen.ScaleAbsolute(159f, 60f);
PdfPCell tilde = new PdfPCell(imagen, true);
tilde.HorizontalAlignment = Element.ALIGN_RIGHT;
tilde.FixedHeight = 40f;
tilde.Border = 0;
tableTitulo.AddCell(new Paragraph(titulo, font2));
tableTitulo.AddCell(tilde);
return(tableTitulo);
}