PDF Kit EncryptFile fails - Invalid cast exception - Unable to cast object of type

PDFKit Version 3.5

Encrypfile fails, see attachments for pdfs

License _lic = new License();
_lic.SetLicense(@"Aspose.Pdf.Kit.lic");

DocumentPrivilege _priv = DocumentPrivilege.ForbidAll;
_priv.AllowCopy = true;
_priv.AllowPrint = true;
_priv.AllowFillIn = true;
_priv.AllowScreenReaders = true;
_priv.AllowModifyContents = true;

PdfFileEditor _editor = new PdfFileEditor();
_editor.Concatenate(args,
@"Concatenated.pdf");

PdfFileSecurity _security = new PdfFileSecurity(@"Concatenated.pdf",
@"Concatenated-lock.pdf");

_security.EncryptFile(null, "owner", _priv, false);

Hi Nou,

I have reproduced the problem at my end and logged it as
PDFKITNET-10083 in our issue tracking system. Our team will be looking into the matter and you’ll be udpated via this forum as the issue is resolved.

We’re sorry for the inconvenience.
Regards,

The issues you have found earlier (filed as 10083) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan