Like the subject say, Is there some way to force download a pdf file throw Ajax?
In my script, the construction of the PDF file is made after button ajax request, and them I use
return Redirect::to( $store_pdf_file );
But this redirect and open the PDF, I want to download the file.
If you've returned no content at this point (or if you redirect to a custom php/cms page instead of redirecting straight to the pdf file), you could provide your own headers (and stream the file) so the browser just downloads it instead of trying to view it?