Image flips upside down in pdf

I am trying to add signature image inside existing pdf document with correct coordinates using aspose.pdf. I have used method described here to add image inside pdf file. I am able to add image inside existing pdf but some times it gets inverted to 180 degree, like mirror image of original. In worst case image does not get render inside pdf and output pdf gets generated without image.
Please tell me how to resolve this issue and is there any other method aspose.pdf have to add image inside existing pdf.
Thanks.

Hi Kunal,


Thanks for using our products.

I have tested the scenario using Aspose.Pdf for .NET 7.7.0 with the code snippet shared over Add Image in an Existing PDF File where I have used sign.png image file which you have shared and as per my observations, the image is properly appearing. For your reference, I have also attached the resultant PDF file which is generated over my end.

I have also tested the sample project which you have shared and as per my observations, the image file is properly appearing in resultant file.

We are sorry for your inconvenience.