Welcome Guest Search | Active Topics | Sign In | Register

how can we improve performance with HtmlToPDF ? Options
snawale
Posted: Thursday, April 6, 2017 5:11:13 AM
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 !!
eo_support
Posted: Thursday, April 6, 2017 1:18:39 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.