PDDocument doc = PDDocument.load(TestEmbeddedFiles.class
.getResourceAsStream("testPDF_multiFormatEmbFiles.pdf"));
PDDocumentCatalog catalog = doc.getDocumentCatalog();
PDDocumentNameDictionary names = catalog.getNames();
PDEmbeddedFilesNameTreeNode treeNode = names.getEmbeddedFiles();
List<PDNameTreeNode> kids = treeNode.getKids();
for (PDNameTreeNode kid : kids)
{
Map<String, COSObjectable> tmpNames = kid.getNames();
COSObjectable obj = tmpNames.get("My first attachment");