Hi Ganesh
You could try to save the qr code as an image by creating a generalized entity of type System.Image (https://docs.mendix.com/howto/data-models/working-with-images-and-files/)
You can then use a dynamic image in the document template to show that image.
Hope this helps