Decrypting strings in my PDF encrypted with custom security

, ,

Scenario:
User want to update the string using pdfnet when we use PDF encryption/decryption.

Sample code:

SDFDoc ddd = new SDFDoc(Encdata)
LoadAllStringObj();
for (int i = 0; i < lstObj.Count; i++)
{
Obj objCurrent = (Obj) lstObj[i];
DecryptString(objCurrent);
}
public void DecryptString(Obj objString)
{
try
{
byte[] data = new Decryptor.Decrypt(GetData(objString.GetRawStream(false)));
objString.SetString(data);
}
catch (Exception e)
{

}
}
Question :

When user invoke the objString.SetSting it throws exception?
Exception:
{System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
at pdftron.SDF.Obj.SetString(Byte[] value)

How to resolve this error.Anybody knows the answer please reply.
Note:
We are PDFNet for Windows phone 8 SDF.