Loosing attachment after encrypt

I add an attachment in an existing pdf and then I encrypt the pdf (with aspose.pdf.kit).

My attachment is gone after the encryption

Any idea ?

Code:

' Embed

Dim pCE As PdfContentEditor = New PdfContentEditor

pCE.BindPdf(Output_Merged)

pCE.AddDocumentAttachment(Input, PVNum.Text)

pCE.Save(Output_Emb)

' Encrypt (attachment is present before encryption)

Dim fileSecurity As PdfFileSecurity

fileSecurity = New PdfFileSecurity(Output_Emb, Output_Enc)

fileSecurity.EncryptFile("", "test", PdfPrivilege.Copy Or PdfPrivilege.Print, False)

Hi
Jean-Marie,

Please share the PDF file and the attachement file with us, so we could test the issue using your scenario. You’ll be updated accordingly.

We’re sorry for the inconvenience.
Regards,

Hi Shahzad,

Find here the two files.

The pdf is generated with Word2007 (Save as PDF)

The docx file is a Word2007 document

Thanks in advance

Jean-Marie

Hi Jean-Marie,

I have logged this issue as PDFKITNET-15959 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,

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


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