I want to render only first document’s page and get total page number for current document for further possibility to render any orbitrary pages chosen by user.
For that I call viewer.GetViewInfo(viewInfoOpts), then I get pages count from info.Pages.Count property.
I’m facing a problem of high RAM consumption when I call viewer.GetViewInfo(viewInfoOpts).
For example, the test application uses up to 1Gb of RAM when trying to obtain view info for 10 Mb JSON file.
Without calling GetViewInfo application uses less than 200 Mb of RAM also total processing time is reduced from 87 seconds to 13 seconds. (as you can see from Visual Studio diagnostic tools screenshots)
Is there any way to obtain document’s pages count without sufficient RAM consumption?
The test application source code and test JSON file is attached below.
P.S. I’m using GroupDocs.Viewer for .NET ver.20.3.0