开发者

Is there any library similar to itext and can write field values in pdf form?

开发者 https://www.devze.com 2023-02-03 19:17 出处:网络
I use itext \'s setField function to save field value into pdf form, but I find after I use itext, the whole pdf will corrupt, you can not edit the pdf in adobe reader any more. It will show you that

I use itext 's setField function to save field value into pdf form, but I find after I use itext, the whole pdf will corrupt, you can not edit the pdf in adobe reader any more. It will show you that the file has been changed and extended feature 开发者_Go百科in adobe reader can not be used.

So I am looking another library that can do the same job. another problem: after I signed the pdf with identity card, if I try to edit the pdf using itext library, it will invalidate all the previous signature. but if I use acrobat the edit the fields, all signature revisions are kept well.

Is there any similar library that I can use to do the above things ?


Take a look at Apache PDFBox.


According to http://support.itextpdf.com/node/6 you need to fill out your form in append mode in order to preserve Reader's extended features.

I don't have any answers for the signatures though.


This may not be iText's fault. You may need to resign the document. Acrobat was probably doing this for you automatically, as it had the original certificates. When you modify a field, you modified the document. The signatures were not meant for the modifications.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号