You can use a 3rd party tool like PDFtk to extract the metadata using the dumpdata option.
pdftk mydoc.pdf dump_data output mydoc.data.txt
Metadata will be represented as key/value pairs, like so:
InfoKey: Creator
InfoValue: Acrobat PDFMaker 6.0 for Word
InfoKey: Title
InfoValue: Brian Eno: His Music and the Vertical Color of Sound
InfoKey: Author
InfoValue: Eric Tamm
InfoKey: Producer
InfoValue: Acrobat Distiller 6.0.1 (Windows)
InfoKey: ModDate
InfoValue: D:20040420234132-07'00'
InfoKey: CreationDate
InfoValue: D:20040420234045-07'00'
This may provide and easier and more consistent format for parsing programatically.