Hi @kalyana ,
missing those 2 and using a PDF library to modify the PDF outside do not work together well.
If you are using a java lib you could create the image, make a base64 of the content and then add this in a tag of your data like <qrcodedata>IUZG897VBGUZG...</qrcodedata>. Then skip the QRcode object and do not mess with the PDF outside - use an image field of XFA, bind the data tag to it and you should see your QRcode as an image all the time.
Kosta