开发者

Formatting of pdfptables using itext in java

开发者 https://www.devze.com 2023-02-12 12:14 出处:网络
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 ri

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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消