In our application we use PD4ML to generate PDF previews. In one such case, we also have images inside the document. The image is rendered correctly on HTML preview but does not renders correctly on PDF preview.
Please see attach generated html code and PDF preview. Look at the image under GAP column