Miqueloco Posted August 9, 2016 Share Posted August 9, 2016 I am using FPDF and I have some problems. I think it's due to that Prestashop adds things to the response from a controller. Even if its mine. Can I prevent Prestashop from adding things to my controller's response? If i can't, I hope someone could help me figuring out how to send my PDF as output. Thank you very much in advance! Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 9, 2016 Share Posted August 9, 2016 Don't try and send it in the Ajax response as it is not a good practice. Instead, get your code to generate a unique URL for the PDF, then get the JS to redirect to that URL. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now