I want to read pdf or doc document's text content in wordpress plugin. I downloaded xpdf and I used it to get content. But in wordpress plugin or theme I can't get the content.
$filename = "try.pdf";
echo $filename;
$content = shell_exec('xpdf\pdftotext ' . $filename . ' -');
echo $content;
I used this code in plugin, but $content variable is null. How can i solve this problem?