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

TOPIC: PDF - Empty Body

PDF - Empty Body 23 Apr 2013 09:45 #1166

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
If the indexing of the PDF document return the message "Empty Body" or if the document is indexed and the search not return result, then you must read this topic.

If your problem is the "Empty body", you need to know that each document could have different encoding.

When you indexing one document (or N° documents) you must define encoding type to read this document and type encoding for convert this encoding in "Analyzer Encoding".

I'll explain:

If your "PDF" document is saved in ISO-8859-1 (or Windows 1252).

Now the XPDF, reads the content of the PDF file, of default in ISO-8859-1 (or Windows 1252 or Latin-1), and buffer this in ISO-8859-1 encoding.

Because the Analyzer is set in "UTF8_CaseInsensitive" (remember that this field should never be changed), JiFile must convert the buffered content ( ISO-8859-1) in UTF8. To do this, you must define encoding of the document in field "Encoding" in JiFile configuration.

If your "PDF" document is in another type of encoding (for exemple UTF8), you must configure the XPDF for read and buffer the content in this encoding. This is possible in file:

\libraries\ifile\adapter\helpers\binaries\xpdfrc\xpdfrc

Warning: the "xpdfrc" file, should not have extension.

For more information read this document:

www.isapp.it/documentazione/How-To-Use-JiFile.pdf

If the search not return result than for testing this problem, you can set the field "body" (in Configuration section on JiFile) as "Text".

Delete document that not works, and re-indexing. Now in "Detail" (image "plus" in the Index section), you can see the real content that has been indexed.

If your document is incomplete, then, you must see the "Encoding" configuration correct.

Remember that the "field body" as "Text" decreases the performance, but present the "Highlights" in the search on front end.
If the "field body" is "UnStored" the performance are very strong, but in front end search, present only the "IntroText" field.
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 topic has been locked.