Extract attachments from PDF portfolios To extract attachments from emails getContainer method is used. This method returns the collection of ContainerItem objects.
Here are the steps to extract an attachment text from PDF Portfolios:
Instantiate Parser object for the initial document; Call getContainer method and obtain collection of ContainerItem objects; Check if collection isn’t null (container extraction is supported for the document); Iterate through the collection and get container item names, sizes and obtain content....Annotation Product Solution GroupDocs...ContainerItem item : attachments ) { // Print the file path System . out ...