How can I setup with 58mm paper size in receipt printer

You can configure paper size from Receipt configuration in backoffice->Admin->Receipt Configuration. For more about this interface visit here

. If you are using ESC/POS mode you can adjust text length. Check this page for more.