You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for all those struggling with the same issue here is what I have done to achieve this:-
First I created a facade object $facade = $this->get('ps_pdf.facade');
$response = new Response();
Then I passed all the required variables to twig template:
Instantiated a new file object $fs = new Filesystem();
Finally, called dumpfile() function of file system object $filename = 'something';
$fs->dumpFile('folderpath/'.$filename.'.pdf', $pdf);
It will dump/store the generated pdf file to the given path on the server. Given that proper write permission are there on the folder.
Hi.. there
I want the generated pdf file to be immediately saved in directory on server..
Any possible ways :)
Regards
The text was updated successfully, but these errors were encountered: