Welcome,
Guest
|
|
Found out that with the latest version of JiFile / iFile the pdftotext binary for linux requires a version of GLIB that isn't in the stable builds for Redhat or Centos environments out of the gate.
Since we run this in a production environment we found a neat library that might help anyone else running into the same issue. linuxappfinder.com/package/poppler-utils Installing this puts a compatible version of pdftotext in your bin directory and with the code found here ( around line 115 of Adapter_Search_Lucene_Document_PDF.php ) it is automatically handled. if(file_exists("/usr/bin/pdftotext")){
$handle = popen("/usr/bin/pdftotext -q -htmlmeta \"{$this->getFilename()}\" - 2>/dev/null", 'r');
}else if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$handle = popen($pathBinaryFile . "helpers/binaries/windows/pdftotext.exe -q -htmlmeta \"{$this->getFilename()}\" - 2>nul", 'r');
}else if(strtoupper(substr(PHP_OS, 0, 3)) === 'FRE'){
$handle = popen($pathBinaryFile . "helpers/binaries/freebsd/pdftotext -q -htmlmeta \"{$this->getFilename()}\" - 2>/dev/null", 'r');
}else if(strtoupper(substr(PHP_OS, 0, 3)) === 'DAR'){
$handle = popen($pathBinaryFile . "helpers/binaries/osx/pdftotext -q -htmlmeta \"{$this->getFilename()}\" - 2>/dev/null", 'r');
}else if(strtoupper(substr(PHP_OS, 0, 3)) === 'LIN'){
$handle = popen($pathBinaryFile . "helpers/binaries/linux/pdftotext -q -htmlmeta \"{$this->getFilename()}\" - 2>/dev/null", 'r');
}else{
$handle = popen($pathBinaryFile . "helpers/binaries/custom/pdftotext -q -htmlmeta \"{$this->getFilename()}\" - 2>/dev/null", 'r');
} |
The administrator has disabled public write access.
|
|
Hi www.isapp.it owner do you have facebook fan page?
pudzianowski piliafas zakłady |
Last Edit: 14 Aug 2012 13:54 by Giampaolo.
The administrator has disabled public write access.
|
|
|
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie Help us by voting our extensions on Joomla.org: JiFile JoomPhoto Mobile Easy Language
The administrator has disabled public write access.
|
If you not change browser settings, you agree to it. Learn more