hie ..
我过去几天一直在使用itext,我在调整页脚内容时遇到困难..如果页脚中有两行或更多行,是否有办法以不同的方式对齐每一行..我试过做它以下列方式没有任何成功..
Paragraph footerInfo = new Paragraph("Date :-",FontFactory.getFont("Calibri",9,Font.BOLD));
footerInfo.add("\n");
footerInfo.add(new Paragraph("Place :- "",FontFactory.getFont("Calibri",9,Font.BOLD)));
Paragraph foot1 = new Paragraph("EmpID:-",FontFactory.getFont("Calibri",9,Font.BOLD));
foot1.setAlignment(Element.ALIGN_RIGHT);
footerInfo.add(foot1);
HeaderFooter footer = new HeaderFooter(footerInfo, false);
footer.setBorder(Rectangle.TOP);
document.setFooter(footer);