Added PDF detection