We port the HTML to PDF converter from iText to Aspose.
We run into the problem that the rendered PDF in aspose produces a different result than with iText.
In iText, an image that is wider than the PDF page is automatically scaled to fit exactly.
We want to simulate this functionality in Aspose.PDF, only it doesn’t seem to be possible to do this automatically, or to resize images. An image which is wider than the PDF is just cut off, it is not scaled.
What we also tried is to reduce the size of the large images on the generated PDF document, but it seems that the space occupied on the PDF remains the same. So there is a large white area visible.
How can we realize that oversized images are nevertheless displayed in their entirety on the PDF page?