Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am using I am using itextsharp to generate password protected file. But when I am trying to open it, print option is disabled.
How to generate password protected pdf file which allows me to print?


Thanks,
Posted
Comments
Steve44 23-Mar-13 3:36am    
Please provide more details, how are you encrypting your password protected files? What arguments are you passing?
Prasad Khandekar 23-Mar-13 5:12am    
Did you use correct permissions while password protecting the PDF. The PDFEncryptor class encrypt method also takes the permission argument. You can give following permissions AllowPrinting, AllowModifyContents, AllowCopy, AllowModifyAnnotations, AllowFillIn, AllowScreenReaders, AllowAssembly and AllowDegradedPrinting. These permissions are combined by Oring.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900