![](/img/trans.png)
[英]pdfBox - Signature validity checkmark not visible in Acrobat reader
[英]Pdf Signature Validity Check Mark Not Visible on Acrobat Reader
我正在使用iText簽名pdf文件。 當我在Acrobat Reader 9上查看文件時,簽名框中沒有顯示綠色的勾號,就像在Acrobat Reader 7中那樣。
請注意,我可以在頁面頂部看到有效標記,但是我特別希望該標記顯示在簽名矩形中。
有人說版本9不再支持此功能,但是我查看了版本9上帶有綠色復選標記的一些數字簽名文件。
因此,我需要使用itext上的特定標志或層嗎? 我已經使用了setAcro6Layers,setVisibleSignature,setLayer2Text,setLayer2Font,setImage,setImageScale等。
任何幫助深表感謝。 謝謝
事實證明,我只需要將Acro6Layers設置為false,而不用setImage方法設置任何圖像...而不是setImage,而是使用setSignatureGraphic方法...
pdfSignatureAppearance.setAcro6Layers(false);
pdfSignatureAppearance.setImage(null);
pdfSignatureAppearance.setSignatureGraphic(Image...);
pdfSignatureAppearance.setAcro6Layers(true);
pdfSignatureAppearance.setImage(null);
using itext-2.1.7.jar
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.