Conversion outputs a blank page

Hi, I’m using version 22.12.1 for java on OpenJDK 11, Windows 10, .
I’m trying to convert this docx to a png file and I get a single blank page, instead of 2 converted images.
Input file: Dimmer Days.docx (49.3 KB)
It took 347 seconds to convert this file and produce a blank page. Why?
Can you please help?
Thank you,
Nir

@nirm

We cannot reproduce this issue at our end using following code:

    //Java code
    String outputFolder = "D:/";
    String outputFileTemplate = new File(outputFolder, "converted-page-%d.png").getPath();

    try(FileOutputStream getPageStream = new FileOutputStream(String.format(outputFileTemplate, 1))) {
        Converter converter = new Converter("D:/Dimmer Days (2).docx");
        ImageConvertOptions options = new ImageConvertOptions();
        options.setFormat(ImageFileType.Png);
        options.setPagesCount(1);
        converter.convert(() -> getPageStream, options);
    } catch (IOException e) {
        System.out.println(e.getMessage());
    }

Take a look at this output.png (40.4 KB). Could you please share a sample application using that issue could be reproduced?
As far as converting multi paged document to multi images is concerned, we have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CONVERSIONJAVA-1882

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@nirm

Please use following code to convert multi paged document to multiple images (e.g. PNG):

//Java code to convert multi paged document to multiple PNG files
Converter converter = new Converter("sample.docx");
final ImageConvertOptions convertOptions = new ImageConvertOptions();
convertOptions.setFormat(ImageFileType.Png);
converter.convert((SavePageStream) i -> {
     try {
         return new FileOutputStream("output" + i + ".png");
     } 
     catch (FileNotFoundException e) {
         throw new RuntimeException(e);
     }
}, convertOptions);