This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Copy created pdf file to web directory

upen wrote on 2011-08-06:
I m using pdfcrowed, but when i click on create pdf its creating the pdf but prompt me to donwload the pdf to computer. I dont want to download it i want to copy or move that particular file to my web directory.

I m using Php language.


Thanks
support wrote on 2011-08-07:
You can use this code save the generated PDF to a file:
$client = new Pdfcrowd("***", "***");
$pdf = $client->convertURI('http://www.google.com/');

$fd = fopen("google.pdf", "wb");
fwrite($fd, $pdf);
fclose($fd);