I use the below code to show a PNG image in PDF. I use <fo:instream-foreign-object>
because <fo:external-graphic>
does not fulfil my requirement to show a image. Refer to issue external graphic
<fo:instream-foreign-object width="50%" content-width="scale-to-fit">
<svg>
<image height="439px" width="1037px" xlink:href="test.png"/>
</svg>
</fo:instream-foreign-object>
With the above use, I am not able to get the picture in the document. The image is not properly placed in the page and the text in the next paragraph is overlay on top of it. Please suggest how to achieve it.