(Aspose.PDF 188.8.131.52, Aspose.Image 184.108.40.206, Aspose.Email 220.127.116.11)
I am staring off with an email that I save as MHT then Load as PDF. The email has an image that is 1036x67 pixels large. I am trying to get all the information in a letter size (8.5x11) pdf page. To do this I am trying to resize the image. When I resize the image and replace the original image with the new image, I am seeing that the new image size is changed, but it stretches out to the old image size in the PDF. Additionally the new image that gets put into the pdf changes the background color to grey vs the transparency of original image.
I would like to resize the image found in the PDF to fit the new paper size I select and keep its transparency. Please let me know how I can do this with your tools. Please find attached example.
ResizeImage.zip (2.0 MB)