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)