We want to insert a series of images with different sizes in a PDF, so we can stretch them all to have the same size. So far, we are doing it with the AddImage method.
What's happening is that if the image size is smaller than the rectangle where we want to insert it, Aspose Kit PDF is adjusting the image proportionally. So, what we would like is it to strectch the size so it can adjust in the rectangle defined in AddImage.
//Instantiate PdfFileMendor object and pass input and output PDF file streams to its constructor
PdfFileMend mendor = new PdfFileMend(inPdfStream, outputStream);
//Call AddImage method and pass image, page number and (X,Y) axis information
mendor.AddImage(inImgStream, 1, 250, 250, 500, 500);