79601147

Date: 2025-04-30 21:56:55
Score: 1
Natty:
Report link

I think it should help

PdfArray array = new PdfArray();
array.Add(fileSpec.GetPdfObject().GetIndirectReference());
pdfDoc.GetCatalog().Put(PdfName.AF, array);

after

doc.AddFileAttachment(Path.GetFileName(file.Item2), spec);

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andrei S