Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $service = new Google_Service_Drive($client);
- // download pdf
- $response = $service->files->export($fileId, 'application/pdf', array('alt' => 'media'));
- $content = $response->getBody()->getContents();
- $fp = fopen($exported_pdf_location.'sheet.pdf', 'w');
- fwrite($fp, $content);
- fclose($fp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement