Wishing for the following DataAssist Search capability... Internal MS Word and PDF document searching...
Reading PDF Files
To read PDF files, you will need to install the XPDF package, which includes "pdftotext." Once you have XPDF/pdftotext installed, you run the following PHP statement to get the PDF text:
Copy this code to the clipboard
1
$content = shell_exec('/usr/local/bin/pdftotext '.$filename.' -'); //dash at the end to output content
Reading DOC Files
Like the PDF example above, you'll need to download another package. This package is called Antiword. Here's the code to grab the Word DOC content:
Copy this code to the clipboard
1
$content = shell_exec('/usr/local/bin/antiword '.$filename);
Is there a way to search the contents of DOC, TEXT and PDF files using DataAssist? I think that would be wonderful addition.