Skip to content
Snippets Groups Projects
Commit f68f61da authored by kamel's avatar kamel
Browse files

Ajout fichier test

parent 067c6178
No related branches found
No related tags found
No related merge requests found
test.php 0 → 100644
<?php
require_once 'vendor/autoload.php';
$pdfFilePath = '/var/www/datanextcloud/ServiceRH/files/dematpayslip/upload/Edition_du_bulletin_de_paie_individuel_385052.pdf';
print "Begin\n";
$pdfParser = new \Smalot\PdfParser\Parser();
print "Open file\n";
$pdf = $pdfParser->parseFile($pdfFilePath);
print "Get pages\n";
$pdfPages = $pdf->getPages();
$pdfPageNb = count($pdfPages);
if ($pdfPageNb <= 0) {
print "No pages\n";
}
print "OK\n";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment