Forum

JiFile for Joomla!

JIFile
JiFile is a component for Joomla! that allows you to index file contents (PDF, DOC, etc..) to perform searches in them.

Learn more...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile is a component for Joomla! that allows you to share the photos from your Android device to your site Joomla.

Learn more...  Demo

iFile Framework

IFile
IFile is an open source framework written entirely in PHP, allows the indexing of textual content of a document (DOC, PDF, EXCEL, etc.) and a quick search within them.

Learn more...  Demo

Easy Language

EasyLanguage
Easy Language is a plugin for easy and immediate management of multilingual texts in every possible area of joomla, articles, components, modules, metadata, template, other components(example K2) etc.

Learn more...

Article Book Effect

Article Book Effect
View Joomla articles with the effect turns the page of a book. This plugin will display the contents of an article in Joomla as a real book or magazine, using all the benefits of HTML5

Learn more...  Demo

 

Passport photo

Passport photo
The most popular Android app that allows you to print photos cards for your documents with your Android smartphone, in a simple and intuitive way.

Learn more...

 

Crazy Shadow

Crazy Shadow
Crazy Shadow is the 3D fast-paced and fun puzzle Android game! Try to rotate and drag shapes in the position of their shadows without fail! Solve in succession all combinations of levels of the game.

Learn more...

 

Admin Countdown

Admin Countdown
Module for Joomla! 2.5 and 3.x displays in the administration part of the site, a timer with countdown of the time remaining in your session.

Learn more...  Demo

 
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Xpdf and Empty Body

Xpdf and Empty Body 06 Oct 2015 15:55 #2079

  • tesson
  • tesson's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
hi
thansk a lot for your help
i tested with the script uplaoded and i received this: (i just changed the PATH-To-ROOT info)

250 - LIN Server
256 - LIN Server 64bit
Handle: /usr/bin/pdftotext -cfg /PATH-TO-ROOT/html/components/com_joboffer/libraries/ifile/adapter/helpers/binaries/xpdfrc/xpdfrc "/PATH-TO-ROOT/html/components/com_joboffer/uploads/55a3c29d2ad8f/CV Mylne PANOTIER Ingnieure QSE.pdfx" - 2>&1


User: www-data
pdftotext version 0.18.4 Copyright 2005-2011 The Poppler Developers - poppler.freedesktop.org Copyright 1996-2004 Glyph & Cog, LLC Usage: pdftotext [options] [] -f : first page to convert -l : last page to convert -r : resolution, in DPI (default is 72) -x : x-coordinate of the crop area top left corner -y : y-coordinate of the crop area top left corner -W : width of crop area in pixels (default is 0) -H : height of crop area in pixels (default is 0) -layout : maintain original physical layout -raw : keep strings in content stream order -htmlmeta : generate a simple HTML file, including the meta information -enc : output text encoding name -listenc : list available encodings -eol : output end-of-line convention (unix, dos, or mac) -nopgbrk : don't insert page breaks between pages -bbox : output bounding box for each word and page size to html. Sets -htmlmeta -opw : owner password (for encrypted files) -upw : user password (for encrypted files) -q : don't print any messages or errors -v : print copyright and version info -h : print usage information -help : print usage information --help : print usage information -? : print usage information
The administrator has disabled public write access.

Xpdf and Empty Body 06 Oct 2015 16:07 #2080

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Hi,
I think that the problem is the permission to executable "/usr/bin/pdftotext" from "www-data" user.

You can try from command line this command (without "sudo")

/usr/bin/pdftotext -cfg /PATH-TO-ROOT/html/components/com_joboffer/libraries/ifile/adapter/helpers/binaries/xpdfrc/xpdfrc "/PATH-TO-ROOT/html/components/com_joboffer/uploads/55a3c29d2ad8f/CV Mylne PANOTIER Ingnieure QSE.pdfx"

You can try also with one document without "blank" in the name?
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.

Xpdf and Empty Body 06 Oct 2015 16:45 #2081

  • tesson
  • tesson's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
hi
i verified that apache got access to execute pdfinfo or pdftotext and all seems to be ok.

but when we tried to execute the commmand you sent, we noticed that there is no option '-cfg' for pdftotext (or pdfinfo).

our version of
XPDF is 3.0.3
pdfinfo and pdftotext are 0.18.4
The administrator has disabled public write access.

Xpdf and Empty Body 06 Oct 2015 17:49 #2082

  • tesson
  • tesson's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Hi
i just wanted to test if i change the directive for pdfinfo in your adapter Search_Lucene_Document_PDF.php file;
i just removed the "-cfg" part

if ($custom_pdftotext) {
//$handle2 = popen($pathBinaryFile . " {$opw} -cfg {$configXpdf} -q \"{$this->getFilename()}\" {$outputStreming}", 'r');
$handle2 = popen($pathBinaryFile . " {$opw} -q \"{$this->getFilename()}\" {$outputStreming}", 'r');
} else {
//$handle2 = popen($pathBinaryFile . "{$executableSO} {$opw} -cfg {$configXpdf} -q \"{$this->getFilename()}\" {$outputStreming}", 'r');
$handle2 = popen($pathBinaryFile . "{$executableSO} {$opw} -q \"{$this->getFilename()}\" {$outputStreming}", 'r');
}

And all the PDF are indexed !
Did we fin the solution or not?
Last Edit: 06 Oct 2015 17:50 by tesson.
The administrator has disabled public write access.

Xpdf and Empty Body 26 Oct 2015 11:14 #2095

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Yes,
this solution works, but you can't use the file configuration but you need configure XPDF from command line.
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.

Xpdf and Empty Body 11 Aug 2016 18:06 #2257

  • Struck
  • Struck's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Updated to Joomla 3.6.2 and I thought it will be some protected or PDF/A files. But I renamed one of the existed and indexed pdfs and wanted to reindex it after deleting the existed index of this file: empty body.
Nothing is changed, everything is green (only id3 and com_dotnet I don't use) but I can't index newer files
The administrator has disabled public write access.

Xpdf and Empty Body 15 Aug 2016 14:16 #2262

  • Struck
  • Struck's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Ok, working again! After deinstall and reinstall (can't download with Goo Chrome while loggedin). The Paths in the manual are wrong. I think with updating Joomla the paths changed from libraries/ifile/... to administrator/components/com_jifile/libraries/ifile/... But why the pdftotext and the pdfinfo were green, without finding them?
Then utf-8 instead blank in the config and xpdfrc deleted the #
The administrator has disabled public write access.
  • Page:
  • 1
  • 2