They are correct under normal circumstances, but they seem to have problems under concurrent conditions

image.png (101.0 KB)
They are correct under normal circumstances, but they seem to have problems under concurrent conditions.

final Document document = new Document("/Users/zyx/Downloads/9ddf029e1d137b288876127c2ef07733.docx");
final ImageSaveOptions options = new ImageSaveOptions(SaveFormat.JPEG);
options.setImageBrightness(0.7f);
options.setImageContrast(0.7f);
for (int i = 0; i < document.getPageCount(); i++) {
    options.setPageSet(new PageSet(i));
    final String filename = "aaa_"+ i + ".jpg";
    document.save(filename,options);
}

https://tezign-assets.oss-cn-beijing.aliyuncs.com/9ddf029e1d137b288876127c2ef07733.docx

@zyx

We have tested the scenario using the latest version of Aspose.Words for Java 21.5 and have not found the shared issue. So, please use Aspose.Words for Java 21.5.

If you still face problem, we suggest you please install Aspose.Words’ optional dependencies shared in the following article.