Validate images from a PDF file

I need to be able to use Ruby to be able to validate some images inside
a PDF. I have the ability to validate the text with pdf/toolkit, but
need to make sure that the images that are showing up in the file are
all correct.

Is there anything that might be able to do this?

Thanks for the help -
BobSmyph