check for pdf