I am trying to produce a PDF on the fly whose output can not be changed/edited/added to etc.. by any PDF editor.
I have the following code shown below.. however when I open the output test.pdf in my third party PDF editor it lets me add whatever I want to the file. Am I missing something here where I can totally lock the PDF down?
Thanks
Pdf testPdf = new Pdf();
testPdf.Sections.Add();
testPdf.Security = new Security();
testPdf.Security.IsAnnotationsModifyingAllowed = false;
testPdf.Security.IsContentsModifyingAllowed = false; //Restrict contents modification
testPdf.Security.IsCopyingAllowed = false; //Restrict copying the data
testPdf.Security.IsPrintingAllowed = true; //Allow to print the document
testPdf.Security.IsFormFillingAllowed = false; //Restrict form filling
testPdf.Save("C:\\test.pdf");