Trouble converting PDF to JPEG

@rdaviessci,

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:

  1. 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.
  2. So, the result image after PDF to DOCX to JPEG conversion will be 1584x2112 pixels (while the original pictures from PDF are 3000x4000 pixels).
  3. 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.

The issues you have found earlier (filed as WORDSNET-21677) have been fixed in this Aspose.Words for .NET 21.2 update and this Aspose.Words for Java 21.2 update.

The issues you have found earlier (filed as WORDSNET-21719) have been fixed in this Aspose.Words for .NET 21.2 update and this Aspose.Words for Java 21.2 update.

A post was split to a new topic: Extract Text from PDF File Line by Line and Save Data Values inside SQL Server Database C# .NET