Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iTextSharp.text.Paragraph titolo = new iTextSharp.text.Paragraph(currentVuln.Title, _fontTitolo0);
- titolo.Alignment = iTextSharp.text.Element.ALIGN_CENTER;
- _document.Add(titolo);
- table = new PdfPTable(3);
- table.WidthPercentage = 98;
- cell = new PdfPCell(new Phrase("Header spanning 3 columns"));
- cell.Colspan = 3;
- cell.HorizontalAlignment = 1; //0=Left, 1=Centre, 2=Right
- table.AddCell(cell);
- table.AddCell("Col 1 Row 1");
- table.AddCell("Col 2 Row 1");
- table.AddCell("Col 3 Row 1");
- table.AddCell("Col 1 Row 2");
- table.AddCell("Col 2 Row 2");
- table.AddCell("Col 3 Row 2");
- _document.Add(table);
- titolo.SpacingAfter = 20;
- table.SpacingBefore = 20;
- iTextSharp.text.Paragraph titolo = new iTextSharp.text.Paragraph("Hello Worldnn");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement