Benvenuto,
Ospite
|
|
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');
} |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Hi www.isapp.it owner do you have facebook fan page?
pudzianowski piliafas zakłady |
Ultima modifica: 14/08/2012 13:54 da Giampaolo.
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
|
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
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
Facendo click su qualunque link della pagina si accetta il loro utilizzo. Per saperne di piu'