使用iText v5.6.xx创建具有显示图形和来自签名的描述的问题。

huangapple go评论63阅读模式
英文:

Question with display graphic and description from signature using itext v5.6.xx

问题

I'm learning digital signature from this book, it's very helpful. When I read the "Custom rendering mode" section, I see this one:

RenderingMode.GRAPHIC_AND_DESCRIPTION—this will split the signature field in
two and add an image on one side, the description on the other side.

I have tried and found the result is to divide 2 parts by left and right, I'm wondering if there's a way to make it 2 parts according to top and bottom?

英文:

I'm learning digital signature from this book, it's very helpful. When I read the "Custom rendering mode" section, I see this one:

> RenderingMode.GRAPHIC_AND_DESCRIPTION—this will split the signature field in
two and add an image on one side, the description on the other side.

I have tried and found the result is to divide 2 parts by left and right, I'm wondering if there's a way to make it 2 parts according to top and bottom?

答案1

得分: 1

根据iText的PdfSignatureAppearance类的源代码,iText根据外观矩形的高度和宽度来决定是分割左/右还是上/下:如果高度严格大于宽度,区域将分割为上/下。否则,将分割为左/右。

英文:

According to the source code of the iText PdfSignatureAppearance class, iText decides whether to split left/right or top/bottom based on the height and width of the appearance rectangle: If it is strictly higher than it is wide, the area is split top/bottom. Otherwise it's split left/right.

huangapple
  • 本文由 发表于 2023年4月4日 11:24:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/75925283.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定