-
-
Save parzibyte/5b4856c98f4e94db9e8143dccdf68c22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Incluir autoload | |
include "vendor/autoload.php"; | |
$parseador = new \Smalot\PdfParser\Parser(); | |
$nombreDocumento = "6-imagenes.pdf"; | |
$documento = $parseador->parseFile($nombreDocumento); | |
$paginas = $documento->getPages(); | |
foreach ($paginas as $indice => $pagina) { | |
printf("<h1>Página #%02d</h1>", $indice + 1); | |
$texto = $pagina->getText(); | |
echo "<pre>"; | |
echo $texto; | |
echo "</pre>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment