I have pdf documents that I need to create as entities on our website. The pdfs were created with metadata, such as title and subject, that we want to have available in Drupal.
I am trying to save the subject metadata in a new field that I added to the Document media type.
I do not believe that pdf metadata is being stored in either the media object or the file object by default.
I have attempted to hook into the media_creation to save the field by using
hook_media_insert() but I have not found an easy way to get that information yet either from the Media or File objects.
Is there a way to grab that metadata information from the pdfs?