首页 > 编程知识 正文

pdf两列变一列,pdf交互式表单域怎么修改

时间:2023-05-05 21:28:25 阅读:57819 作者:4404

在日历项目中工作,使用iText生成pdf并打印约会。 我可以画出有科斯帕的单元格和有罗森的单元格,但不能把它组合起来。 表的宽度为4个单元格。 我想实现这样的目标。

((a ) (b ) ) (c ) ) )。

((d ) (e ) ) (c ) ) )。

因此,(1,1 ),2 )和) 2,1 ),2,2 )是普通细胞,但应该有1个覆盖(1,3 ),1,4 ),2,3 )和(2,4 )的细胞,因此2个sp sssp

当前代码:

pdfptabletable=newpdfptable(4; pdfpcellcell=newpdfpcell (new phrase (“1,1”); (细胞; cell=newpdfpcell (new phrase (“1,2”); (细胞; pdfpcellcell 23=newpdfpcell (new phrase (“multi 1,3 and 1,4”); Cell23.setColspan(2; Cell23.setRowspan(2; table.addcell(cell23; cell=newpdfpcell (new phrase (“2,1”); (细胞; cell=newpdfpcell (new phrase (“2,2”); (细胞; //3和2,4应该被填补。 1,3包括rowspan 2和colspan 2. //table.completeRow (; //没有效果

但是发生了错误:

exception converter:Java.io.io exception :文档中没有页面。

如果我没有开始创建第二行,那只是(只画了一行,) 1,3 )的单元格中有2个科斯。 Rowspan )无效,因为没有第二行。 谢谢你的帮助。 谢谢你。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。