@Adithya_Mani
We tested the scenario using Aspose.PDF for .NET 20.8 and were unable to notice any issue. The API generated all images without throwing any error. Attached are the images generated at our end using following code snippet:
var fs = new FileStream(dataDir + "TextAndImage-test.pdf", FileMode.Open);
Document pdfDocument = new Document(fs);
foreach (Page page in pdfDocument.Pages)
{
using (FileStream imageStream = new FileStream(dataDir + "image" + page.Number + ".jpg", FileMode.Create))
{
Resolution resolution = new Resolution(300);
JpegDevice jpegDeviceLarge = new JpegDevice(resolution, 100);
jpegDeviceLarge.RenderingOptions.InterpolationHighQuality = true;
jpegDeviceLarge.RenderingOptions.UseNewImagingEngine = true;
jpegDeviceLarge.Process(page, imageStream);
}
}
image5.jpg (575.9 KB)
image6.jpg (823.4 KB)
image4.jpg (946.4 KB)
image2.jpg (1.3 MB)
image3.jpg (1.0 MB)
image1.jpg (985.3 KB)
Please note that we always recommend to use latest version of the API because it contains more fixes and improvements. Furthermore, the issues reported in older versions of the API are resolved in latest/higher version. We strongly recommend you to upgrade to latest version of the API because there are many classes and methods which have been discontinued in the version which you are using. In case of any further assistance, please feel free to let us know.