download pdf
Closed this issue · 2 comments
xavikhattak commented
hello
I want to use this library but i want when user access my page e.g example.com?url=http://googel.com
i download the pdf of google.com on his browser
how to do that ?
daudmalik06 commented
Hello @xavikhattak you have to send proper header from php ,
header("Content-type:application/pdf");
// It will be called downloaded.pdf
header("Content-Disposition:attachment;filename='downloaded.pdf'");
// The PDF source is in original.pdf
readfile("original.pdf");
but i am working to implement this method too i.e download
etc ...
hope it solved this issue.
Thanks ,
xavikhattak commented
thanks i understood it would be awesome to add that feature ...