Thank you - this is pretty much what I ended up doing, in despair. I was hoping for a more immediate approach, avoiding the full extraction of all those embedded PDFs. Never mind.
Incidentally, CollectionType always seems to return 0, even with portfolios.