Welcome Guest Search | Active Topics | Sign In | Register

Performance issue with Html to Pdf Options
Pallavi
Posted: Friday, January 9, 2015 12:00:34 PM
Rank: Newbie
Groups: Member

Joined: 1/8/2015
Posts: 2
Hi,
We are seeing performance issue when trying to convert html to pdf( HtmlToPdf.ConvertHtml)

We are aware that the first time it takes longer and based on the some other tickets we added code to keep the conversion engine alive at all time. Is there a better solution to keep the engine alive at all times? Also is there certain time interval after which the engine shutdown?

In spite of these changes the performance still hasn't been great. For the same request, it could take any time between < 1 sec to 4 secs. DO you have suggestions to improve the performance
eo_support
Posted: Friday, January 9, 2015 12:13:01 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

1 to 4 seconds is very normal, so I do not believe there is much room there. There are a few things you can try:

1. Monitor your network traffic and see how long it takes for your web server to serve all the contents. When EO.Pdf converts a page, the first step is to load the page and all dependencies (images, CSS, JS files, etc). It will NOT start convert until all those are loaded. So if you have a single image that takes longer to load, then it will slow the whole thing down;

2. Try to set this property to false:

http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdfoptions.retrievenodetext.aspx

This property does not have a significant impact on performance, but it can reduce memory usage, thus MAY improve performance indirectly.

Thanks!
Pallavi
Posted: Friday, January 9, 2015 5:55:48 PM
Rank: Newbie
Groups: Member

Joined: 1/8/2015
Posts: 2
Sure I will try that setting.

Is there certain time interval after which the engine shutdown ?
Is there a configurable solution being considered to keep the engine alive in future versions?

Thanks
eo_support
Posted: Friday, January 9, 2015 7:21:02 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Yes. The engine will shutdown after a certain period of time. However currently that time is not configurable. We might consider this in the next release though.

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.