le 14/12/2010 à 15:18
Commande exec qui ne fonctionne pas.
Alors j'ai fait:
et là ça marche...j'espère que ça pourra en aider d'autres!
Encore merci pour votre aide!
$pdf_filename = "E:/trunk/Sources/public/cvtheque/julien.pdf";
$outpath = preg_replace("/\.pdf$/", ".txt", $pdf_filename);
$execpath="E:\trunk\Sources\public\cvtheque\pdftotext";
system($execpath." -enc UTF-8 ".escapeshellcmd($pdf_filename), $ret);
$output = shell_exec('E:\trunk\Sources\public\cvtheque\pdfinfo '.$pdf_filename);
//Gets the metadata
$data = explode("\n", $output); //puts it into an array
//Get the metadata that we need from the PDF.
//Parse through the Array and store in variables. */
print_r($data);
et là ça marche...j'espère que ça pourra en aider d'autres!
Encore merci pour votre aide!
