WebViewer Version: 11.0+
Do you have an issue with a specific file(s)?
Can you reproduce using one of our samples or online demos?
Are you using the WebViewer server?
Yes
Does the issue only happen on certain browsers?
No
Is your issue related to a front-end framework?
Yes
Is your issue related to annotations?
No
Please give a brief summary of your issue:
I currently have a claim file that when done loading in the Webviewer (using the eventListener ‘documentLoaded’) does not have all thumbnails rendered in the thumbnails panel. It seems this happened after I used the below code snippet to optimize my document server-side:
var options = new ViewerOptimizedOptions();
options.SetThumbnailRenderingThreshold(0); // using value 0 means all pages according to Apryse
doc.SaveViewerOptimized(optiimizedFile, options);
I attempted to optimize the document again using generateThumbnails method in Apryse SDK, hoping it would correct the issue and all thumbnails would now be rendered after the document was loaded, but that did not happen.
Here is the code snippet below:
Optimizer.TextSettings textSettings = new();
textSettings.EmbedFonts(options.EmbedFonts);
Optimizer.ImageSettings imageSettings = new();
imageSettings.SetImageDPI(options.MaxDpi, options.DpiDownsampling);
imageSettings.SetQuality((uint)options.Quaility);
Optimizer.OptimizerSettings optimizerSettings = new();
optimizerSettings.SetTextSettings(textSettings);
optimizerSettings.SetColorImageSettings(imageSettings);
Optimizer.Optimize(doc, optimizerSettings);
Flattener fl = new();
fl.Process(workingSetPdf, Flattener.FlattenMode.e_fast);
workingSetPdf.GenerateThumbnails(96);
workingSetPdf.Save(linerizedFile, SaveOptions.e_linearized | SaveOptions.e_remove_unused);
Please describe your issue and provide steps to reproduce it:
See the above description and that is how you create the problem document and then attempt to re-optimize using the GenerateThumbnails method.
Please provide a link to a minimal sample where the issue is reproducible: