问题描述
我正在用iText签署一份pdf文件。当我在Acrobat Reader 9上查看文件时,绿色勾号不会像在Acrobat Reader 7中那样出现在签名矩形内。
I am signing a pdf file with iText. When I view the file on Acrobat Reader 9, the green tick does not appear inside the signature rectangle as it used to do in Acrobat Reader 7.
请注意,我可以看到页面顶部的有效性标记,但我特别希望标记出现在签名矩形中。
Note that I can see the validity mark on top of the page, but I specifically want the mark to appear in the signature rectangle.
有人说Acrobat版本9不再支持此功能,但是我在版本9上查看了一些带有绿色复选标记的数字签名文件。
Some say that this feature is no longer supported by Acrobat by version 9, however I have viewed some digitally signed files with the green check mark on version 9.
那么,我需要在itext上使用特定的标志或图层吗?我已经使用了setAcro6Layers,setVisibleSignature,setLayer2Text,setLayer2Font,setImage,setImageScale等。
So, is there a specific flag or layer on itext I need to use? I already use setAcro6Layers, setVisibleSignature, setLayer2Text, setLayer2Font, setImage, setImageScale etc..
非常感谢任何帮助。
谢谢
Any help is much appreciated.thanks
推荐答案
事实证明我只需要将Acro6Layers设置为false而不是使用setImage方法设置任何图像...而不是setImage,我使用setSignatureGraphic方法...
it turns out I only needed to set Acro6Layers to false and not set any image with setImage method... instead of setImage, I used setSignatureGraphic method...
pdfSignatureAppearance.setAcro6Layers(false);
pdfSignatureAppearance.setImage(null);
pdfSignatureAppearance.setSignatureGraphic(Image...);
这篇关于Pdf签名有效性复选标记在Acrobat Reader上不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!