Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test xpdf with php
#23
(11-28-2012, 12:57 AM)Daniel Wrote: 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'"); 

The %s is replaced by letodms with the path the file to index. The command is supposed to write its output to stdout.
The most simple command would be

'cat %s'

which just outputs the content of the file to stdout.

Uwe
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)