|
Rank: Member Groups: Member
Joined: 11/13/2013 Posts: 11
|
Hello, I am trying to convert a map made with ammap library. It seems that sometimes the map is not displayed at all or it is displayed zoomed in a random location, the rest of it being hidden. I tried to convert the url from amChart website with your tool HTML To PDF (Url). I tried several maps: http://www.amcharts.com/demos/us-heat-map/http://www.amcharts.com/demos/map-with-patterns/#theme-noneThese two examples are the ones I have been able to reproduce the most the anomaly. Is there any incompatibilities with AmMap?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, Please try to increase HtmlToPdf.Options.MinLoadWaitTime. EO.Pdf should not have any issues with AmMap. However since AmMap creates the map with JavaScript, it is possible that the converter starts convert the page before the JavaScript code finishes creating the map since the conveter does not know when the JavaScript are done with creating the map. There are two ways to avoid this problem: 1. You can increase HtmlToPdf.Options.MinLoadWaitTime. We tested setting it to 2000 (2 seconds) and the page converts fine; 2. Or use manual trigger if you want to precisely control when the converter should start. See here for more information about manual trigger: http://www.essentialobjects.com/doc/4/htmltopdf/eo_js.aspx#manual_triggerHope this helps. Please feel free to let us know if you have any more questions. Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/13/2013 Posts: 11
|
Thank you for your answer.
What about the 2011 version of EO? Should it work as good as the newest version regarding AmMap?
Thank you.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
We only tested with 2013. But the same option HtmlToPdf.Options.MinLoadWaitTime should exist in 2011 too, and it is for the exact same scenario and purpose. So you can try it and see if it works for you.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/13/2013 Posts: 11
|
With my version, when the PDF is created (HtmlToPdf.Options.MinLoadWaitTime set to 3000), the map loses some of its features like color, location, centered... Meanwhile the trial version that I downloaded rendered the exact copy of the map displayed on the page.
Thank you
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
In that case you might want to considering upgrading to the current version. What happened is over the year we have received a lot of test cases and test files, so the new version is much more robust in addition to the new features. If you can PM us your previous order number we will be able to tell you the exact cost of the upgrade.
Thanks!
|
|