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 ?
Dim pCE As PdfContentEditor = New PdfContentEditor
' 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)