PDF签名域外观在Adobe Acrobat中不显示的问题求助(PDF-XChange、Foxit中显示正常)
PDF签名域外观在Adobe Acrobat中不显示的问题求助(PDF-XChange、Foxit中显示正常)
大家好,我遇到个挺头疼的PDF签名显示问题,想请教下各位大佬:
我用pdf-lib搭建了整个PDF处理工作流,现在生成的PDF在Adobe Acrobat里出现异常——签名域的缩略图能在缩略图面板看到,但PDF页面上完全看不到签名内容。
这个PDF包含一个认证数字签名,还有一次修订,签名域的外观设置在了两个数字签名之间。当我点击“查看已签名版本”时,弹出的报告里提示错误4000,说签名外观无效。
下面是相关的PDF对象代码片段:
15 0 obj << /Type /XObject /Subtype /Image /BitsPerComponent 8 /Width 125 /Height 132 /ColorSpace /DeviceRGB /SMask 21 0 R /Filter /FlateDecode /Length 70 >> stream ... endobj 16 0 obj << /Type /Font /Subtype /Type1 /BaseFont /Courier /Encoding /WinAnsiEncoding >> endobj 17 0 obj << /BBox [ 0 0 200 100 ] /Resources << >> /Subtype /Form /Type /XObject /Filter /FlateDecode /Length 17 >> stream ... endstream endobj 18 0 obj << /BBox [ 0 0 200 100 ] /Resources << /XObject << /Im1 15 0 R >> >> /Subtype /Form /Type /XObject /Filter /FlateDecode /Length 34 >> stream ... endstream endobj 19 0 obj << /BBox [ 0 0 200 100 ] /Resources << /XObject << /n0 17 0 R /n2 18 0 R >> >> /Subtype /Form /Type /XObject /Filter /FlateDecode /Length 42 >> stream ... endstream endobj 20 0 obj << /BBox [ 0 0 200 100 ] /Resources << /XObject << /FRM 19 0 R >> >> /Subtype /Form /Type /XObject /Filter /FlateDecode /Length 22 >> stream ... endstream endobj 21 0 obj << /Type /XObject /Subtype /Image /Height 132 /Width 125 /BitsPerComponent 8 /ColorSpace /DeviceGray /Decode [ 0 1 ] /Filter /FlateDecode /Length 1824 >> stream ... endstream endobj
目前我已经在翻找类似问题的帖子,也在尝试调整PDF对象的结构,但还没找到解决办法。我的核心需求是让这个PDF和签名在所有PDF阅读器里都能正常显示、验证。
附两张截图说明情况:
完成认证、签名域填充、第二次数字签名后的显示效果:

点击“查看已签名版本”后弹出的错误报告:

备注:内容来源于stack exchange,提问作者Bobby-1995




