itextSharp - Merging pdf files disables extended reader permissions

后端 未结 2 1639
旧巷少年郎
旧巷少年郎 2021-01-22 11:06

I\'m using Itextsharp v5.1 and created enabled reader pdf files. I wrote a c# class that fill the form and keep each individual pdf file extended reader. But, when I use this Me

2条回答
  •  猫巷女王i
    2021-01-22 11:58

    In order to preserve existing reader enabled permissions, you have to use a PdfStamper in APPEND mode.

    There are also a number of things you Shouldn't Do to such a PDF or you'll disable the extra permissions anyway... I believe "add pages" and "add annotations/fields" are on the list of things you can't do.

提交回复
热议问题