string filePath = Server.MapPath("~\pdf\");
PdfFileSecurity fileSecurity = new PdfFileSecurity(filePath + “US_IDS_Form__SB_08a.pdf”, filePath + “US_IDS_Form__SB_08a_NoRestriction_CanFill_copy.pdf”);
fileSecurity.SetPrivilege(DocumentPrivilege.Copy);
What I need to do is remove the Content Copying Restriction plus Filling of form fields and Page Extraction from the Ducument Restriction Summary:
To be more specific, here is a brief description of the Ducument Restriction Summary
You can acces , by pressing right click on the Acrobat document and chosing Document Properties , then select the tab Security , Now under Ducument Restriction Summary you could see something like this:
-----------Ducument Restriction Summary-----------------------------------
|
| Printing : Not Alowed
| Document Assembly: Not Alowed
| Content Copying: Allowed
| Content Copying for Accessibility: Allowed
| Page Extraction: Not Alowed
| Commenting: Not Alowed
| Filling of form fields: Not Alowed
| Signing: Not Alowed
| Creation of templates Pages: Not Alowed
|
|--------------------------------------------------------------------------------------------
Any idea on how to remove this restrictions???
BTW: I try using this:
DocumentPrivilege privilege = DocumentPrivilege.ForbidAll;
privilege.ChangeAllowLevel = 1;
privilege.AllowPrint = true;
privilege.AllowCopy = true;
privilege.AllowModifyContents = true;
But It doesn’t work.
The pdf form is Attached to this post.
I will apreciate your help.
Till next time.