Read metadata from a PDF file