Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf HTML to PDF conversion takes a long time Options
eo_support
Posted: Friday, February 24, 2012 9:21:26 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Occasionally EO.Pdf HTML to PDF may take longer than expected (for example, 15 to 25 seconds for a simple page) to perform a conversion. Please follow these steps to troubleshoot such problem:

1. Make sure you are already using the latest build. We constantly post bug fixes/improvements. So it might be a problem that we have already fixed;

2. Make sure it's our code, not your code that is taking the time. Obviously if it spends most of that 15 to 25 seconds in your code then it's unlikely to have anything to do with us;

3. If it's ConvertHtml/ConvertUrl that's costing time (or if you are using ASPXToPDF and a simple page costs no time to render in a browser but costs that much time when you call RenderAsPDF), then check the CPU load while it's in progress. If the CPU load is high during the whole 15-25 seconds even for simple pages, then there might be a problem in our code. In that case please try to isolate the problem into a test project and send the test project to us. We will need to reproduce the problem here so that we can debug through it against our source code to find out why;

4. If the CPU load is low but the conversion is still taking a long time, then it's because the converter is waiting for all the external resources (CSS files, images, JavaScript files, etc) to be loaded. In that case you will want to check why it takes a long time for those resource to load. For example, if your page contains an image, then the converter first load your page, then load the image, only after that it will start to convert. If for some reason your server takes a long time to serve that image, then we will be just sit there and waiting. In that case you will need to check your web server logs to find that first;

5. If the request to load external resources never hit your server, then most of the time the DNS configuration is wrong on your server. Check here for more details:

http://www.essentialobjects.com/doc/4/web/aspxtopdf.aspx#debug

6. If you use ASPXToPDF and none of above reveals the problem, try call HtmlToPdf.ConvertHtml directly. Make sure you set HtmlToPdf.Options.BaseUrl correctly when calling ConvertHtml.

If the problem continues after all these steps, we will need a test project to investigate further.

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.