Closed ItsTheChiva closed 6 months ago
The path to your PDF file is broken: ficheiros/C:\xampp\tmp\phpA3AF.tmp
. Please check $caminhoTemporarioPDF
and $pdf_path
. I assume it must be
$pdf_path = $caminhoTemporarioPDF;
Its not a problem with PDFParser.
ok im gonna try again but if dont work i dont know how im gonna read a pdf file
Please have a look here: https://github.com/smalot/pdfparser/blob/master/doc/Usage.md
Description: The error in the title appears wen i choose the pdf and wen i go to the directory i dont have the Parse.php
PDF input
Expected output & actual output
Code
function extrairPalavrasChaveDoPDF($caminhoTemporarioPDF) { require 'vendor/autoload.php';
}
if (isset($_FILES['ficheiro'])) { $ficheiros = $_FILES['ficheiro']; $tudo_certo = true; foreach ($ficheiros['name'] as $index => $nome_ficheiro) { $erro = $ficheiros['error'][$index]; $tamanho = $ficheiros['size'][$index]; $tmp_name = $ficheiros["tmp_name"][$index];
}