Changed to accept PDF only.