php-pdf-parser icon indicating copy to clipboard operation
php-pdf-parser copied to clipboard

a pdf parser in php

This is a mostly complete port of pyPdf. The API is basically the same.

<?php

include 'pdf-parser/pdf.php';

$pdf = new PdfFileReader(fopen('test.pdf', 'rb'));
print $pdf->page_count;

?>