For reducing the loading time| DocumentUltimate
Question asked by Sandeep Mohanadasan - April 2 at 2:42 AM
It is taking almost 10 seconds to load the document at initial time.Could you please suggest any performance improvement technique on loading document viewer
Note:I am using Ver ,i am not able access ComponentRenderer.

Below is my code

@using GleamTech.AspNet.Mvc
@using GleamTech.DocumentUltimate
@using GleamTech.DocumentUltimate.AspNet
@using GleamTech.DocumentUltimate.AspNet.UI

<!DOCTYPE html>


var documentViewer = new DocumentViewer
Height = 900,
Document = ViewBag.URL//URL passed from controller


<title>Document Viewer</title>

1 Reply

Reply to Thread
Cem Alacayir Replied
Employee Post
From the docs:
Upon first view, internally DocumentViewer will convert the source document to PDF (used for "Download as Pdf" and also for next conversion step) and then to XPZ (a special web-friendly format which DocumentViewer uses to actually render documents in the browser). So in this case the user will see "please wait awhile..." message in the viewer for a few seconds. These generated PDF and XPZ files will be cached and upon consecutive page views, the document will be served directly from the cache so the user will see the document instantly on second viewing. When you modify the source document, the cached files are invalidated so your original document and the corresponding cached files are always synced automatically. Note that it's also possible to pre-cache documents via DocumentCache.PreCacheDocument method (e.g. when your user uploads a document), see General Samples for more information.

Reply to Thread