如何在pdf单元格中设置值 [英] How do I set value in pdf cell

查看:77
本文介绍了如何在pdf单元格中设置值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我有一个字符串的arraylist,我想将这个arraylist解析为我的pdfpcell,但我的arrayList保持循环在这里是我的代码



ArrayList< string> testList = new ArrayList< string>(); 1,2,3



for(i = 0; i< testlist.size();> {



new PdfPCell(new Phrase(testList.get(i));



document.add(table);

< br $>
}



document.close();

Hi I have a arraylist of string , I want to parse this arraylist to my pdfpcell , but my arrayList keep looping here is my code

ArrayList<string> testList = new ArrayList<string>(); 1,2,3

for(i=0; i<testlist.size();>{

new PdfPCell(new Phrase(testList.get(i));

document.add(table);

}

document.close();

推荐答案

for(i=0; i<testlist.size();>{
 
new PdfPCell(new Phrase(testList.get(i));
 
document.add(table);
 
}



你是说你看不出为什么测试 i< testlist.size()永远不会失败,因为变量 i 永远不会改变价值?


Are you saying that you cannot see why the test for i<testlist.size() never fails, since variable i never changes value?


这篇关于如何在pdf单元格中设置值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆