英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论