public static void Run()
{
// ExStart:GetAttachmentNames
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Attachments();
// Open document
PdfExtractor pdfExtractor = new PdfExtractor();
pdfExtractor.BindPdf(dataDir+ "GetAttachmentNames.pdf");
// Extract attachments
pdfExtractor.ExtractAttachment();
// Get attachment names
System.Collections.IList attachmentNames = (System.Collections.IList)pdfExtractor.GetAttachNames();
foreach (string attachmentName in attachmentNames)
Console.WriteLine("Name : {0}", attachmentName);
// ExEnd:GetAttachmentNames
}
}