How to disable the properties of pdf files using C#.. Here i want to disable print, save properties of pdf file
I want to disable the print and save properties of pdf file using C# and also i want to stop the pdf file from forwarding via mail...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
YinPosted Oct 8, 2012, 10:53 PM
Sharon WhitePosted Sep 18, 2012, 5:28 AM
I don't have a direct solution, but the following code I use can meet your requirement.
doc.Security.Permissions = PdfPermissionsFlags.EditContent;
Through using the above code, besides editing, all the other functions, print, copy etc. will be disabled.
(The above code is based on a .NET PDF component)
The following image shows properties of my PDF.