Forum

JiFile per Joomla!

JIFile
JiFile è una componente per Joomla! che permette di indicizzare il contenuto dei file(PDF, DOC, ecc.) per poter effettuare delle ricerche al loro interno.

Scopri di più...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile è una componente per Joomla! che ti permette di condividere le foto dal tuo dispositivo Android sul tuo portale Joomla!.

Scopri di più...  Demo

iFile Framework

IFile
IFile è un framework open source scritto interamente in PHP, permette l'indicizzazione dei contenuti testuali di un documento (DOC, PDF, EXCEL, etc) e una rapida ricerca all'interno degli stessi.

Scopri di più...  Demo

Easy Language

EasyLanguage
Easy Language è un plugin per la gestione semplice ed immediata di testi multilingua in ogni parte possibile di joomla, articoli, componenti, moduli, metadata, template, altri componenti(esempio K2) ecc.

Scopri di più...

Article Book Effect

Article Book Effect
Visualizza gli articoli di Joomla con l'effetto volta pagina di un libro. Questo plugin consente di visualizzare il contenuto di un articolo Joomla come un vero e proprio libro o una rivista, utilizzando tutti i vantaggi di HTML5

Scopri di più...  Demo

 

Fototessera

Article Book Effect
La più famosa Android App che ti permette di stampare le foto tessere per i tuoi documenti con il tuo smartphone Android, in modo semplice ed intuitivo.

Scopri di più...

 

Ombra pazza 3D

Ombra pazza 3D
Ombra Pazza è il puzzle game 3D frenetico e divertente per Android! Prova a ruotare le forme portandole nella posizione delle proprie ombre senza mai fallire! Risolvi una dopo l'altra tutte le combinazioni dei livelli di gioco.

Scopri di più...

 

Admin Countdown

Admin Countdown
Modulo per Joomla! 2.5 e 3.x visualizza nella parte di amministrazione del sito, un timer con il conto alla rovescia del tempo rimanente della tua sessione.

Scopri di più...  Demo

 
Benvenuto, Ospite
Nome utente: Password: Ricordami

ARGOMENTO: PDF indexation

PDF indexation 04/08/2013 23:12 #1335

PDF indexation doesn't work for Windows 8 - 64 bits.
I have setup server as 64 bits in config page. I have the following message "empty body". But manual conversion from pdf to text works with pdftotext.exe.
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.

PDF indexation 05/08/2013 10:43 #1336

  • Giampaolo
  • Avatar di Giampaolo
  • OFFLINE
  • Administrator
  • Messaggi: 465
  • Ringraziamenti ricevuti 43
Hi,
we do not understand your problem.
You can send us more detail, with screen and use case?

Thanks
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.

PDF indexation 05/08/2013 22:43 #1337

I couldn't index PDF files. I thought that ist was due to the fact that my computer is a windows 8 64bits. I tried to understand how ifile works and I have found 2 bugs in PDF adapter: Adapter_Search_Lucene_Document_PDF.php.

-1) popen doesn't work if there is a space in the path of the pdftotext exe.
Set " at the beginning and the end of the exe path for WIN servers:
Change:
$handle = popen($pathBinaryFile . "helpers/binaries/windows/pdftotext.exe -q -htmlmeta \"{$this->getFilename()}\" - 2>nul", 'r');

By:

$handle = popen("\"".$pathBinaryFile . "helpers/binaries/windows/pdftotext.exe\" -q -htmlmeta \"{$this->getFilename()}\" - 2>nul", 'r');

-2) $contents variable is set to blank in getTxtFromBinaries() before updating body:

$contents = '';
if($handle2){
while (!feof($handle2)) {
set_time_limit(0);
$contents .= fread($handle2, 8192);
}
}

$this->indexValues->setBody($contents);

Commentarize the line: $contents = '';
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.

PDF indexation 06/08/2013 11:59 #1340

BONNICHON-DAUBINS ha scritto:
I couldn't index PDF files. I thought that ist was due to the fact that my computer is a windows 8 64bits. I tried to understand how ifile works and I have found 2 bugs in PDF adapter: Adapter_Search_Lucene_Document_PDF.php.

-1) popen doesn't work if there is a space in the path of the pdftotext exe.
Set " at the beginning and the end of the exe path for WIN servers:
Change:
$handle = popen($pathBinaryFile . "helpers/binaries/windows/pdftotext.exe -q -htmlmeta \"{$this->getFilename()}\" - 2>nul", 'r');

By:

$handle = popen("\"".$pathBinaryFile . "helpers/binaries/windows/pdftotext.exe\" -q -htmlmeta \"{$this->getFilename()}\" - 2>nul", 'r');

-2) $contents variable is set to blank in getTxtFromBinaries() before updating body:

$contents = '';
if($handle2){
while (!feof($handle2)) {
set_time_limit(0);
$contents .= fread($handle2, 8192);
}
}

$this->indexValues->setBody($contents);

Commentarize the line: $contents = '';


We can keep $contents=''
if we change $handle2 update:


$handle2 = popen("\"".$pathBinaryFile . "helpers/binaries/windows/pdftotext.exe\" -cfg \"{$configXpdf}\" -q \"{$this->getFilename()}\" - 2>nul", 'r');

instead of

$handle2 = popen($pathBinaryFile . "helpers/binaries/windows/pdftotext.exe -cfg {$configXpdf} -q \"{$this->getFilename()}\" - 2>nul", 'r');


You put "- 2>nul" with only one "l". For other OS, it is "null" instead of "nul". Is it right ?
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.

PDF indexation 06/08/2013 16:04 #1343

  • Giampaolo
  • Avatar di Giampaolo
  • OFFLINE
  • Administrator
  • Messaggi: 465
  • Ringraziamenti ricevuti 43
Hi,
thanks for you topic.
For first problem, we solve in next release. Another user had the same problem.

For "nul" is used in Windows NT 4 and later and in OS/2 for redirect Standard Error, which was in turn redirected to the NUL device by 2>NUL.
For another OS, the device redirect is NULL.
This is used for not indexing the messagge error in the Body.
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.