Created
May 27, 2020 04:11
-
-
Save mrnirva/629c776e75059fe5d75fa4fe720739a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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