Rank: Newbie Groups: Member
Joined: 4/6/2017 Posts: 1
|
hi ,
It takes almost 10 secs just to write and download the pdf with MVCToPDF.RenderAsPDF. is there any way we can reduce this to 2-3 secs ? Plus do we have any caching technique which can be used to cache the data when I load the information on browser and need to export the same as PDF?
Thanks in advance !!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You can try to comment contents out block by block in your HTML to see which block triggers the delay. The most common reason for the delay is loading dependency resources. For example, if your page contains an image and loading that image takes a long time (for example, if this image is a dynamically generated image and the server takes a long time to generate this image), then the converter will wait until the image finishes loading.
If your HTML is large and very complex, then it can indeed takes a long time to convert. In that case there isn't much you can do.
Thanks!
|