Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test xpdf with php
#22
Hi Uwe,

Found a script to test:

PHP Code:
<?php
system
("pdftotext 1.pdf outfile.txt");
?>

I had to modify it on my system, now it looks like this and works:

PHP Code:
<?php
system
("/opt/bin/pdftotext 1.pdf outfile.txt");
?>

I tried to add the path to LetoDMS but still no change in behavior.

What is the %s in the command?

I tried it with the following in my test file, but i don't know how to set this properly in LetoDMS (this worked too and presented me the output on the screen):

PHP Code:
system ("/opt/bin/pdftotext -nopgbrk 1.pdf - | sed -e 's/ [a-zA-Z0-9.]\{1\} / /g' -e 's/[0-9.]//g'"); 

Regards
Daniel
Reply


Messages In This Thread
Test xpdf with php - by Daniel - 11-19-2012, 12:04 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)