encodage file CustomDocument and mistake tape