You need to export annotations content and representation and for that purpose you need to access the annotations of a model with Creo OTK. When you search the knowledge base with the keywords get annotation OTK, you will find this article : https://www.ptc.com/en/support/article/cs294130
Luckily it drops some code to create a button that will get all the annotations of a model in session.
It is then up to you to dive deeper in the annotation data structure and get the necessary data you need for your export.
The mapping from the Creo Annotation data to your destination file format is then left to your discretion.
Do we need the TOOLKIT-for-3D_Drawings (222 license option) in order to do the above operation in the part environment instead of the drawing environment?