Store and display pdf in new tab in one click
I want to store and display the stored data in one click.
How can i do that please suggest me Thanks?
I want to use dompdf.
https://prnt.sc/qyeuqu
Are you having a problem generating the pdf with dompdf or is it already generated and you want to download it and print it?
Already generated but i have no idea how can i implement it ( save and print in one click).
@sinnbeck
Thanks for your comment.
No i don't want like this.
What i want is , when i will click on save button it will store data and at a time pdf will be open in another tab with those stored data.
I assume save button is one you have on the website?
Just make it a link with target="_new", to a controller that creates the file and responds with it like in the provided link above
Please or to participate in this conversation.