Please upgrade to the latest 21.2 version of Aspose.Words for .NET as it contains fixes of both the linked issues.
Regarding WORDSNET-21677, we fixed few issues that we found:
- The original PDF’s size is too big - 42x56 inches. Because Aspose.Words and MS Word only support up to 22 inches, we had to adjust the logic.
- So, the result image after PDF to DOCX to JPEG conversion will be 1584x2112 pixels (while the original pictures from PDF are 3000x4000 pixels).
- Because the provided PDF contains only JPEG images, we changed image processing to JpegEncoder instead of PngEncoder - it helped to improve the conversion time from 12 sec down to 8 sec.
We think that you want to convert both PDF pages and the code only handles the first one. Please use ImageSaveOptions to achieve that goal:
var doc = new Document("gti title_resig.pdf");
var options = new ImageSaveOptions(SaveFormat.Jpeg) { PageSet = new PageSet(0) };
doc.Save("gti title_resig_0.jpeg", options);
options.PageSet = new PageSet(1);
doc.Save("gti title_resig_1.jpeg", options);
Please let us know if we can be of any further assistance.