PdfExtractor.GetAttachNames
PdfExtractor.GetAttachNames method
Returns list of attachments in PDF file. Note: ExtractAttachments must be called before using this method.
public IList<string> GetAttachNames()
Return Value
List of attachments
Examples
Example demonstrates how to extract attachment names form PDF file.
PdfExtractor extractor = new PdfExtractor();
extractor.BindPdf(TestSettings.GetInputFile("sample.pdf"));
extractor.ExtractAttachment();
IList attachments = extractor.GetAttachNames();
foreach (string name in attachments)
Console.WriteLine(name);
See Also
- class PdfExtractor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF