Add Attachment to PDF using C# - file size is unknown

Hi Team,

I am trying to attach file to PDF using below API

// Add attachment to document’s attachment collection
pdfDoc.EmbeddedFiles.Add(fileSpecification);

I can see the attachment but size is “unknown” as shown in below screenshot.

image.png (4.0 KB)

I could not resolve this , hence I tried to check the examples given in Aspose.Pdf.Examples.CSharp.

image.png (381.6 KB)

I got the same error as shown in below screenshot.

image.png (39.0 KB)

Could you please help me to resolve this issue?

Thanks,
Poonam

@PoonamB

We have already observed this issue in our environment and logged it as PDFNET-44604 in our issue tracking system. We have linked the issue ID with this forum thread so that you will receive a notification as soon as it is resolved. Please be patient and spare us some time.

We are sorry for the inconvenience.