ZIP literally has a central directory.
I don’t understand what’s the point of any of this over a minimal subset of PDF (one image per page).