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 25 Apr 2013 07:12 #1174

  • Nico
  • Nico's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello,

I have read other topics for this subject but i have always "empty body". pdftotext is ok when i use command line. I tested to put 32 bit and leave blank encoding configuration. I tested to uncomment xpdfrc and i have always "empty body". I attached my config and my PDF file. Thank you.

Last Edit: 25 Apr 2013 10:42 by Antonio.Reason: add confidential tag
The administrator has disabled public write access.

PDF EMPTY BODY 25 Apr 2013 13:18 #1176

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Hi Nico,
your PDF works correctly (see image).

This image is hidden for guests. Please log in or register to see it.


In attachment a test PHP script "Adapter_Search_Lucene_Document_PDF.php.txt"

This attachment is hidden for guests. Please log in or register to see it.


1. Copy in "libraries/ifile/adapter" this script
2. Rename the file "Adapter_Search_Lucene_Document_PDF.php" in "Adapter_Search_Lucene_Document_PDF.php.original"
3. Rename the file "Adapter_Search_Lucene_Document_PDF.php.txt" in "Adapter_Search_Lucene_Document_PDF.php"
4. In JiFile Filesystem section, click on "Manual Index" (floppy icon on the right)

See what is written in "text area" and let us know.

We have seen that you uses an Windows server, if you use IIS/6.0 you can have a problem with the "popen" function that not works correctly.

For more information, if you server is linux or other, open the "Adapter_Search_Lucene_Document_PDF.php.test" and change the string:

- 2>/dev/null in - 2>&1
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
Last Edit: 25 Apr 2013 14:06 by Giampaolo.
The administrator has disabled public write access.

PDF EMPTY BODY 25 Apr 2013 22:19 #1177

  • Nico
  • Nico's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Thank you for your quick response.

I tested the modified file manually indexing. I have the same error "Error recovery Document Empty body". How can I test the proper operation of the popen command?
Thank you in advance.
The administrator has disabled public write access.

PDF EMPTY BODY 25 Apr 2013 23:01 #1178

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Hi Nico,
you can create a new file PHP with this code:
<?php
/**
 * Verify popen
 */
 
$handle2 = null;
// scrive su file
$handle2 = popen("dir", 'r');
$contents = '';
if($handle2){
	while (!feof($handle2)) {
		set_time_limit(0);
		$contents .= fread($handle2, 8192);						
  	}
}
echo "CONTENT: ";
echo $contents;
die();

and run this script from browser, for exemple:

http://localhost/testpopen.php

if the content is empty then your IIS not works correctly with "popen" function.
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.

PDF EMPTY BODY 07 May 2013 10:42 #1193

  • Nico
  • Nico's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello,

I tested your file.

The browser displays "CONTENT:".

What can I do now ?

Thank you.
The administrator has disabled public write access.

PDF EMPTY BODY 07 May 2013 11:55 #1196

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Hi,
you can install Apache 2.2 or you must use only IIS?

The ability to use 'popen' or 'proc_open' or 'back tics' on Windows appears to be a "Window-/IIS limitation" or "security-feature".
Windows IIS not describe this problem and this problem is not described in PHP "popen funcion" manual but you're not the only one who reports this problem.

Read this topic:
stackoverflow.com/questions/2294034/how-...ec-to-run-on-iis-6-0

The problem is on shell_exec but is equal, the problem is the permission on the folder and .exe files
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.