def decodeName(name):
 decodedName = name
 hexNumbers = re.findall('#([0-9a-f]{2})', name, (re.DOTALL | re.IGNORECASE))
 for hexNumber in hexNumbers:
  try:
   decodedName = decodedName.replace(('#' + hexNumber), chr(int(hexNumber, 16)))
  except:
   return ((-1), 'Error decoding name')
 return (0, decodedName)

def decodeName ( name ) : decodedName = name hexNumbers = re . findall ( '#([0-9a-f]{2})' , name , ( re . DOTALL | re . IGNORECASE ) ) for hexNumber in hexNumbers : try : decodedName = decodedName . replace ( ( '#' + hexNumber ) , chr ( int ( hexNumber , 16 ) ) ) except : return ( ( - 1 ) , 'Error decoding name' ) return ( 0 , decodedName )
decode the given pdf name .