phptotext

From: Date: Sat, 17 Sep 2005 13:29:46 +0000
Subject: phptotext
Groups: php.db 
Request: Send a blank email to php-db+get-40283@lists.php.net to get a copy of this message
I would like to retrieve text from pdf. So I try to comand pdftotext at xpdf command. How can I write code? ex; <?php $original_tmp = $_FILES['UploadedFile']['tmp_name']; $original_name = $_FILES['UploadedFile']['name']; $fileHandle = fopen($original_tmp, "r"); $uu=exec('pdftotext $original_name');//or system('pdftotext $original_name'); ?> <form method="post" action="document.php" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="512000"> <input type="file" name="UploadedFile" style="border: 1px solid; width:200px; height:20px; position:absolute; left:100px; top:100px; "><br> <input type="submit" value="upload" style="border: 1px solid; width:200px; height:20px; position:absolute; left:100px; top:130px; ">

« previous php.db (#40283) next »