【问题标题】:Attach 2 tables in iText 7在 iText 7 中附加 2 个表格
【发布时间】:2020-04-24 22:56:28
【问题描述】:

如何将 2 个 iText 表格相互附加?请看附图(我需要附上表A和表B)。

我尝试使用 colspan = 1 创建表 C 并将 A 和 B 添加为单元格,但没有帮助。

谢谢。

【问题讨论】:

  • 删除边距?
  • 是的,就像一张桌子。
  • 可能是setSpacingBefore(0)setSpacingAfter(0)
  • setMarginBottom()setMarginTop() 解决了这个问题。附言。 setMarginBottom()setMarginTop() 在 iText 7 中替换了 setSpacingBefore()setSpacingAfter()

标签: java spring itext itext7


【解决方案1】:

setMarginBottom() and setMarginTop() 解决了这个问题。

PS。 setMarginBottom() and setMarginTop() 替换 setSpacingBefore() and setSpacingAfter() 为 iText 7

【讨论】:

    猜你喜欢
    • 2018-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-27
    • 1970-01-01
    • 2017-01-02
    相关资源
    最近更新 更多