If it is a Chinese name mentioned in the content, it can be written directly in pinyin.
If it is a letter of recommendation and the signature of the recommender, it can be written in Chinese or pinyin.
The recommendation letter is usually printed on the letterhead of the recommender's work unit and signed by the recommender.