Rank: Member Groups: Member
Joined: 8/27/2013 Posts: 11
|
Hi,
I have the below code working for one scenario but it doesn't work properly with EO.PDF.
What should happen is the page loads, content gets added via AJAX, JQuery modifies content and then the PDF gets generated.
The PDF shows the modified HTML but isn't showing the AJAX loaded content.
I've tried triggering the PDF manually and adding MinLoadWaitTime.
Any ideas?
$(function () { doAjaxStuff(); //I do other HTML things here which do show in the PDF file.
setTimeout(function() { if (typeof(eopdf) !='undefined') eopdf.convert(); }, 500); });
function doAjaxStuff() { $.ajax({ type: "POST", url: 'url', data: JSON.stringify({ 'Id': 1 }), contentType: "application/json; charset=utf-8", success: function (data) { //I insert HTML here but the PDF version doesn't get it }, dataType: 'json' }); });
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, Please try to use the debug console feature to see if you can see any error message. See here for more information on how to use debug console: http://www.essentialobjects.com/doc/4/htmltopdf/js.aspxIf that still does not reveal any problem, you can try to post the page/application online so that we can try to convert it here to see if we can see the same problem and then go from there. Thanks!
|