HOW TO CREATE A MACRO ON AUTO TRIMING TRANSPARENT (PNG) IMAGE

In photoshop i have remove the background and imported in Coreldraw.

As seen above the image and the excess part. How to trim the excess part with macro. Any suggestion or help. Thanks