Skip to content

Instantly share code, notes, and snippets.

@mrnirva
Created May 27, 2020 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrnirva/629c776e75059fe5d75fa4fe720739a4 to your computer and use it in GitHub Desktop.
Save mrnirva/629c776e75059fe5d75fa4fe720739a4 to your computer and use it in GitHub Desktop.
// 2 Sütunlu tablo oluşturma
PdfPTable tablo_1 = new PdfPTable(2);
// Hücre oluşturma kısmı
PdfPCell hucre_1 = new PdfPCell(new Paragraph(new Chunk("Satır - 1")));
PdfPCell hucre_2 = new PdfPCell(new Paragraph(new Chunk("Satır - 2")));
// Hücrelere iç boşluk verme
hucre_1.setPadding(5);
hucre_2.setPadding(5);
// Hücreleri tabloya ekleme
tablo_1.addCell(hucre_1);
tablo_1.addCell(hucre_2);
// Pdf dosyamıza oluşturduğumuz tabloyu ekleme
pdfDosyam.add(tablo_1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment