PDF read Issue in v25.7: Only First Two Pages (v20.7 Reads All Four Pages)

I tried upgrading Groupdocs Viewer from 20.7 to 25.7.
The latest version is unable to read all the pages of a PDF file, whereas the old version did not have this issue. However, the pages size in ViewInfo is 4
My computer system is macOS 13.7, with jdk1.8.0_202.jdk. The latest version can only read the first two pages, while the old version can read all four pages.

Below are my code and some screenshots.

private void viewHtml() {
        String basePath = "BasePath";
        License license = new License();
        license.setLicense(basePath+"/GroupDocs.Viewer.Java.lic");
        HtmlViewOptions htmlViewOptions = HtmlViewOptions.forEmbeddedResources(basePath+"/doc/p_{0}.html");
        Viewer viewer = new Viewer(basePath+ "/doc/poker2_manual.pdf");
        ViewInfoOptions viewInfoOptions = ViewInfoOptions.fromHtmlViewOptions(htmlViewOptions);
        ViewInfo viewInfo = viewer.getViewInfo(viewInfoOptions);
        List<Page> pages = viewInfo.getPages();
        System.out.println(pages.size());
        viewer.view(htmlViewOptions);
        viewer.close();
    }
<dependency>
            <groupId>com.groupdocs</groupId>
            <artifactId>groupdocs-viewer</artifactId>
        <!-- <version>25.7</version>-->
            <version>20.7</version>
 </dependency>

poker2_manual.pdf (125.6 KB)
1.png (10.5 KB)

Hello @Totallane ,

Thank you for reaching out. The reason you are only able to view two pages is due to the limitations of the trial version of GroupDocs.Viewer for Java. We have tested your file with version 25.7 under a valid license and it produced the expected 4 pages. Could you please confirm if the two output files you received contain the trial red message “Evaluation Only…”?