Get file metadata

Good day, i need some help in getting a file metadata of an excel or pdf , any idea how i may go about it