The userPassword and the ownerPassword can be Nothing or have zero length. In this case the ownerPassword is replaced by a random string.
The open permissions for the document can be following:
AllowPrinting, AllowModifyContents, AllowCopy, AllowModifyAnnotations, AllowFillIn, AllowScreenReaders, AllowAssembly, and AllowDegradedPrinting
Easy way to choose which permission to use (VS2008 intellisense):
e.g.
PdfWriter.AllowPrinting
Related Articles: 循序漸進學習iTextSharp之十一(對文檔進行加密)
沒有留言:
張貼留言