We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to totally lock down a PDF

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?


Pdf testPdf = new Pdf();


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



Thanks for considering Aspose.

Please also set the value of IsScreenReaderAllowed and IsDocumentAssemblyingAllowed properties to False. In case you are still able to add watermark to the resultant PDF, please share the information regarding which PDF editor you're using.

We apologize for your inconvenience.

I added the above to properties and still I can edit...

I am using the editor from pdfill.. link below...

Any other suggestions?



Sorry for replying you late.

I've tested the scenario and I'm able to edit the PDF with PDFFill. We will further investigate this issue in details and will keep you updated with the status of correction.

We apologize for your inconvenience.