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

PDF dowload location

vishal1279 wrote on 2016-05-31:
Hello Support Team,

I'm downloading pdf using $client->convertURI($url); function but I have to know pdf download location because I have to upload it on amazon s3 server while click on download button.

I'm looking here.
vishal1279 wrote on 2016-06-01:
Can anybody help
support wrote on 2016-06-02:

You need to save the generated PDF somewhere on the server first:
$out_file = fopen($server_path."document.pdf", "wb");
$client->convertURI($url, $out_file);

And then you can upload it to S3.