Je zou het met
antiword kunnen proberen. Ik heb met dit tooltje een zoek machine gemaakt voor word documenten dan is het zeker mogelijk om een paar documentje in te lezen.
http://www.winfield.demon.nl/
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| // uploaded file
$uploadfile = $uploaddir . $_FILES['upload']['name'];
// kan je een keuze maken eps of txt
if ($_POST[mime]=='eps'){
// eps uitvoer zonder plaatjes wel een box er om heen
$command='/usr/local/bin/antiword -m 8859-1.txt -p a4 -i 2 '.$uploadfile;
//header ("Content-type: application/postscript");
}
elseif($_POST[mime]=='text'){
// plain text uitvoer met [pic] waar de plaatsjes zitten
$command='/usr/local/bin/antiword -f '.$uploadfile;
//header ("Content-type: text/plain");
}
// de system call (alleen linux)
function syscall($command){
if ($proc = popen("($command)2>&1","r")){
while (!feof($proc)) $result .= fgets($proc, 1000);
pclose($proc);
return $result;
}
}
$test=syscall($command); |
installatie manual uit onze wiki
1. Make a suitable directory such as ‘$HOME/src/antiword’ and copy the ‘antiword.tar.gz’ file to this directory.
2. decompress: ‘gunzip antiword.tar.gz’
3. unpack: ‘tar xvf antiword.tar’
4. compile: ‘make all’
5. install: ‘make install’. This will install Antiword in the $HOME/bin directory.
LET OP!!!
waar de install directory is, hier staan namelijk de font.txt files die je over moet zetten naar de /usr/share/antiword directory
-copy the file 'fontnames' and one or more mapping files from the Resources directory to the $HOME/.antiword directory (note the dot before antiword!).
Omdat je hem installeerd met root zal je de /usr/share/antiword dir aan moeten maken en hier de txt files uit de /root/.antiword moeten halen en die hier in zetten en chmod 777 geven.
Hoop dat je er wat aan hebt. Anders zou je ook nog met openoffice de hele andel als xml kunnen opslaan.
[
Voor 73% gewijzigd door
Verwijderd op 01-12-2005 10:37
]