We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Word to Jpg (Blank image obtained) in JAVA

Hi team,

When converted doc to jpg, blank image is obtained. Please help out.

Regards
Priya Dharshini J P29-06.zip (10.6 KB)

@priyadharshini,

Thanks for your inquiry. We have tested the scenario using following code example and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSJAVA-1613. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Document doc = new Document(MyDir + "2017-06-27T18-51-52_08Z_egi10P42LJJK8M.doc");

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.JPEG);
options.setResolution(300);
options.setPageCount(1);
options.setPageIndex(0);
doc.save(MyDir + "17.6.jpg", options);

Best Regards,
Tahir Manzoor

1 Like

@priyadharshini,

The issues you have found earlier (filed as WORDSJAVA-1613) have been fixed in this Aspose.Words for .NET 17.8 update and this Aspose.Words for Java 17.8 update.