I have used mpdf for pdf creation. Now, I want to download the generated pdf file to my local machine.
I used below code for this.
$mpdf->Output('dummy.pdf', 'D');
But, its not working for me. Please help me
Related
Unable to create pdf using wkhtmltopdf in shared hosting with PHP code
in my shared hosting not able to create pdf using wkhtmltopdf
by using ssh client I can create pdf, the command i used in ssh is
"./wkhtmltopdf-amd64-0.12.4/bin/wkhtmltopdf-amd64 www.google.co.in test.pdf"
this working
in my PHP code, I used as
exec("./wkhtmltopdf-amd64-0.12.4/bin/wkhtmltopdf-amd64 www.google.co.in test.pdf");
it is not working
I tried exec("./public_html/wkhtmltopdf-amd64-0.12.4/bin/wkhtmltopdf-amd64 www.google.co.in test.pdf"); and by removing ./ also,
not working
I am Working on laravel Project i have excel file which i want to download without showing popup of where to save file.
Using Storage::download(), you can start the download instantly.
return Storage::download($path)
Related section in Laravel docs.
I am using CakePHP 3.2 and dompdf library. It works well on local system but not on production. My code is the same on both portals. but it's working well with local but not on production.
In my local system, I got this pdf file here is a sample:
localhost pdf file
production pdf file
localhost pdf file got perfectly without font collapse. but after put my code on production it collapses fonts, tables etc.
Please help me. Sorry for my English.
I've spent hours on this problem and still got nothing. I'm quite a noob when it comes to installing something rather than double clicking may that's why i'm stuck.
What i want to do is to develop a web service which takes a url and returns an image file of the screen shot of that url.
I found out that i can do this doing the following steps:
Using wkhtmltopdf to convert my html files to pdf
And then converting this pdf to image using php imagic library.
I'm still on the first step. I downloaded an executable for wkhtmltopdf from some website and by using the following lines in command line, i successfully created a pdf:
\"C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltopdf\" --page-width 300 --page-height 225 \"$url\" $dir\\$tempName.pdf &
But now i wanted to make this as a web service online but this lines just run on cmd, not on a shared hosting server. What to do know? I've also seen phpwkhtmltopdf but i don't understand the installation phase as disscused Here.
I am using Google's dompdf library to download articles as pdf in my joomla site( test.guru99.com/arrays.html ), it was working fine before.
Now when i enabled Rokbooster - loadtime optimizer pdf downloader is stopped working. I have printed out the errors in a log file but i didn't understand what are the errors.
I have integrated dompdf library in joomla using this. I know this issue is arise due to Rokbooster plugin.
Here's error log file, i just want to understand the error so that i can debug and solve the issue.
Use following link. It has properly described how to install the library step by step.
Creating PDF views