Convert ECDSA public key from hex format to DER or PEM

Hello all,

I would like to ask if it is possible to convert a public key from hex to der/pem format using existing Mbedos API and crypto libraries?

Thanks