Returning size and extension for pdf