Rank: Newbie Groups: Member
Joined: 9/19/2011 Posts: 1
|
Are there any suggestions as to how to improve the speed of creating a PDF?
The HTML generates in under a second but the PDF can take nearly 30 seconds. Even when the pdf size is not very large, maybe 200-300k.
The time length does appear random. The first use is usualy slow but additional use can rendor quckly be even slower.
I get the same behavior on differnent machines using our application or the provided demos.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The main reason why the converter takes time is because it will wait for all resources referenced by your HTML to load. For example, if your HTML contains an image, then the converter will wait for that image to be loaded before starting conversion. The same goes for JavaScript files, CSS files, etc. The converter spends most of the time waiting for your web server to send it all the files. The actual conversion is very quick.
When it takes as long as 30 seconds, it usually indicates a time out occurred while loading some of those resources. You may want to find out what resource it is by gradually reduce the HTML you pass to the converter until the problem stops. Once you find out what it is, you can check your web server to see why it cannot be served promptly.
Thanks!
|