Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I having problems placing my two tables beside each other in my pdf. Here is my code

PdfPTable table3 = new PdfPTable(1);

PdfPCell cell9;

cell9 = new PdfPCell(new Phrase("Text"));


table3.addCell(cell9);

table3.setHorizontalAlignment(Element.ALIGN_RIGHT);


table3.setWidthPercentage(50);

document.add(table3);

PdfPTable table4 = new PdfPTable(1);

PdfPCell cell8;

cell8 = new PdfPCell(new Phrase("HI"));


table4.addCell(cell8);

table4.setHorizontalAlignment(Element.ALIGN_LEFT);


table4.setWidthPercentage(50);

document.add(table4);
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900