Does anyone know how to determine if a given PDF file is a PDF portfolio or a PDF package, and not a “regular” PDF file? I would prefer Java solutions, although since I have not yet found any information about finding a particular type of PDF, I will take what I can get and they will try to figure out the Java solution afterwards.
(When looking for past questions, it seems like a group of people don’t know that there are such things as a PDF portfolio and PDF packages. Typically, both methods allow Adobe to split multiple discrete PDF files into one PDF file. Opening a PDF package in Reader shows the user a list of embedded PDF files and allows you to continue browsing.The PDF portfolio looks a bit more complicated: they also include a Flash browser for embedded files and then allow users to extract discrete PDF files from it. My problem with them and the reason I wanted would have discovered To eat them in the code is that the built-in Preview.app file for OS X cannot read these files - therefore, I would like to at least warn users of my web application that downloading them can lead to a decrease in compatibility between platforms.)
source share