Rank: Newbie Groups: Member
Joined: 1/28/2014 Posts: 2
|
Dear Sir,
We are using your EO (Licensed Version) to generate HTML to PDF in MVC5. It is working fine with static JS file but unfortunately we are facing problem with dynamic JS generated by typescript and the EO-PDF library is not converting Views in to PDF and it is blank.
Please Help us.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
Check if your JavaScript library use HTML 5 Canvas to draw text. We are aware of some issues with HTML 5 Canvas support in the current version and it should be fully supported in our next version. In the mean time you may want to avoid using this feature.
Thanks!
|
Rank: Newbie Groups: Member
Joined: 1/28/2014 Posts: 2
|
Hi Sir,
Thanks for you reply, but we are not using Canvas in our application to draw anything on view.
Earlier It was working fine, but now it is not working. Static content on view is rendering perfectly, but the content which is coming from WebApi request call, is not rendering in PDF, but previously the same view with WebApi call was rendering as PDF correctly.
We are not sure, but it look like, WebApi ajax request which we are making for getting data from server, is taking time to complete its request. and before request completion the PDF is generating, so might be it is not taking that data while PDF generation.
Thanks!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, In that case you can increase HtmlToPdf.Options.MinLoadWaitTime so that the converter will wait until your AJAX call has finished before starting conversion. Alternatively, you can use manual trigger feature: http://www.essentialobjects.com/doc/4/htmltopdf/eo_js.aspx#manual_triggerIf you use manual trigger, the converter will not start conversion unless you explicitly triggers the conversion. Thanks!
|