Hi,
A customer reported rather slow conversion with certain PDF files (one sample file attached).
Rechnungen_0718_0004_0001.zip (425.6 KB)
On my machine it took about 10-12 seconds with GroupDocs.Viewer 22.5.
It’s a single page PDF with a size of 430 KB.
If I convert a similar filet (single page PDF with 464 KB), the conversion is done in 2-3 seconds:
docket test gp.zip (432.7 KB)
I tried to change image quality options, but that did not have a significant effect.
Can you please check what makes this certain PDF conversion so slow?
using (var viewer = new Viewer(documentPath))
{
var infoOpts = ViewInfoOptions.ForHtmlView();
var info = viewer.GetViewInfo(infoOpts);
var options = HtmlViewOptions.ForEmbeddedResources("output_viewer{0}.html");
options.SpreadsheetOptions = SpreadsheetOptions.ForOnePagePerSheet();
options.SpreadsheetOptions.RenderGridLines = true;
options.SpreadsheetOptions.RenderHeadings = true;
options.RenderComments = true;
viewer.View(options);
}