ฉันต้องการส่งออกการนำเสนอสไลด์ของ Google ในรูปแบบ pdf โดยใช้ g-slide api ฉันใช้ฟังก์ชัน Google api นี้:
$fileId = '1ZdR3L3qP4Bkq8noWLJHSr_iBau0DNT4Kli4SxNc2YEo';
$response = $driveService->files->export($fileId, 'application/pdf', array('alt' => 'media' ));
$content = $response->getBody()->getContents();
เมื่อฉันทำ print_r($content)
ฉันจะเห็นรหัส pdf แต่ฉันจะแสดง $content
ในไฟล์ pdf ได้อย่างไร ฉันสามารถบันทึกไว้ในเครื่องท้องถิ่นได้หรือไม่