Using iText Library in xPages, How to adjust column width? If I use table.setWidths(30,10,30), I get the following Error : error: com.ibm.jscript.InterpretException: Script interpreter error, line=52, col=7: Java method 'setWidths(number, number, number)' on java class 'com.itextpdf.text.pdf.PdfPTable' not found
将您的代码包装到Java类中,该类只需要调用一个函数即可,并将流和文档作为参数
It looks like setWidths expects floats. Does this work?
table.setWidths(parseFloat(30),parseFloat(10),parseFloat(30))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.