PdfRpt.Core.Helper.ExtractPdfFileAttachments.PerformExtraction C# (CSharp) Method

PerformExtraction() public static method

Start extracting all of the document level attachments and file attachment annotations of a given PDF file.
public static PerformExtraction ( string pdfFilePath ) : IList
pdfFilePath string Input file's path.
return IList
        public static IList<AttachmentFile> PerformExtraction(string pdfFilePath)
        {
            var results = new List<AttachmentFile>();

            PdfReader.unethicalreading = true; // Allows reading the protected files.
            var reader = new PdfReader(pdfFilePath);
            prepareAttachments(results, reader);
            reader.Close();

            return results;
        }

Same methods

ExtractPdfFileAttachments::PerformExtraction ( this pdfFileStream ) : IList