setDocumentSecurity Method |
Sets the document security settings (user password, etc) for the current document in the PdfWebControl instance.
function setDocumentSecurity(security);
security
Type: PdfDocumentSecurity Class a JavaScript object representing the desired document security settings.Type: Boolean
true if operation completed successfully; otherwise, false.var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance myApi.setDocumentSecurity({"userPassword" : "my_password"}); //change the user password