detecting PDF