Hi, I did something similiar.
First of all I send an ajax request to server with my data for the pdf file. On serverside a create a pdf file with a queue using thujohns pdf package. Because it needs some time, my applications sends an ajax polling request. When it's done, I show a notification with a link to the pdf file.
This is how you can send an ajax polling request:
function doPoll(){
$.post('ajax/pdf', function(data) {
alert(data); // process results, notifications etc.
setTimeout(doPoll,5000);
});
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community