从PDF获取特定元数据

I receive multiple PDF files for printing (Ex: business cards) and I would like to check if they are valid.

Required validations are :

  • Number of pages
  • DPI for each images
  • Dimensions
  • Color profile (CMYK)

I've tried several libraries to get metadata but they don't retrieve those informations.

Is there a way to get them in PHP?