yashbinani
yashbinani

Reputation: 387

Formatting of pdfptables using itext in java

I am using itext to generate pdf files using java.I want to add 2 tables but the tables should be added side by side,that is table 1 should be aligned left and table 2 should aligned right but they should be side by side.Now when i create tables,The 2nd table gets created below the 1st table.How can we set the position of table.

Upvotes: 0

Views: 1753

Answers (1)

Maverik
Maverik

Reputation: 5681

Since a PdfPCell can take another PdfPTable as input, you could create a two column table and add your actual tables in either column.

Upvotes: 1

Related Questions