I want to read the content of the PDF file which is uploaded into google drive. The content should be in a human readable format, not in binary format. Right now I'm using google drive API to read the content but unable to do that.
$fileId = $request['thesis_google_id'];
$response = $service->files->get($fileId, array(
'alt' => 'media'));
$content = $response->getBody()->read(2024);