INSTALL.md
1.12 KB
SearchWP Xpdf Integration
Using this extension you can utilize Xpdf to extract the content from your PDFs.
IMPORTANT: Xpdf is not provided in this download.
You must download Xpdf and upload it to a non-public (outside your Web root) location
Xpdf offers binary distributions for both Windows and Linux at http://www.foolabs.com/xpdf/download.html.
<?php
echo 'test!';
Installation
Once downloaded:
- Extract
xpdfbin-linux-3.03.tar.gz(the version number may be different) - Upload the
pdftotextbinary (found in either thebin32orbin64directory after extracting) to a non-public location, outside your Web root - Ensure you have set the proper permissions to the file
The last step is to tell SearchWP Xpdf Integration where you installed Xpdf. Add the following to your theme's functions.php, replacing /path/to/pdftotext with the actual path on your server.
`function mySearchWPXpdfPath() { return '/path/to/pdftotext'; }
add_filter( 'searchwp_xpdf_path', 'mySearchWPXpdfPath' );`
That's it!