PdfExtractor.GetAttachNames

PdfExtractor.GetAttachNames 方法

返回 PDF 文件中的附件列表。注意:必须在使用此方法之前调用 ExtractAttachments。

public IList<string> GetAttachNames()

返回值

附件列表

示例

示例演示如何从 PDF 文件中提取附件名称。

PdfExtractor extractor = new PdfExtractor();
extractor.BindPdf(TestSettings.GetInputFile("sample.pdf"));
extractor.ExtractAttachment();
IList attachments = extractor.GetAttachNames();
foreach (string name in attachments)
	Console.WriteLine(name);

另请参阅