Decrypting strings in my PDF encrypted with custom security

, ,

Looking at your code you are calling GetRawStream() on a string object. This method can only be invoked on stream objects (you want to use GetBuffer() instead). For details please refer to Obj documentation (http://www.pdftron.com/pdfnet/html/classpdftron_1_1SDF_1_1Obj.html).