Not Get Attachment from Pdf file

I am not able to extract the attachments from attached Pdf File

Code Sample:
Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(“1.pdf”);
var test = pdf.EmbeddedFiles;

Pdf Attachment not extract.zip (545.1 KB)

@hemalp,

After several tests, I think this is a bug. I will be creating a ticket for the dev team.

@hemalp
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-54497

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@hemalp

We investigated the earlier logged ticket. In this document, attached files are stored in FileAttachmentAnnotation objects.
You can verify this (and get information on attached files) using the following code:

var pdfDocument = new Document(myDir + "DownloadingAttachmentFiles_input.pdf");
foreach (Annotation annotation in pdfDocument.Pages[1].Annotations)
{                
    var annFile = annotation as FileAttachmentAnnotation;
    if (annFile != null)
    {                    
        FileSpecification file = annFile.File;
        if (file != null && file.Name != null)
        {
            Console.WriteLine($"Name: {file.Name} on page 1");
        }
    }
}