Posts: 101
Threads: 21
Joined: Oct 2010
Reputation:
0
11-28-2012, 12:57 AM
(This post was last modified: 11-28-2012, 01:00 AM by Daniel.)
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:
<?php
system ("/opt/bin/pdftotext -nopgbrk 1.pdf - | sed -e 's/ [a-zA-Z0-9.]\{1\} / /g' -e 's/[0-9.]//g'");