Welcome Guest Search | Active Topics | Sign In | Register

Not working with Typescript Script Options
PSI Amresh
Posted: Tuesday, January 28, 2014 10:26:40 AM
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.
eo_support
Posted: Tuesday, January 28, 2014 10:30:50 AM
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!
PSI Amresh
Posted: Wednesday, January 29, 2014 4:16:44 AM
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!
eo_support
Posted: Wednesday, January 29, 2014 8:47:14 AM
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_trigger

If you use manual trigger, the converter will not start conversion unless you explicitly triggers the conversion.

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.