PHP code example of pointybeard / pdfinfo

1. Go to this page and download the library: Download pointybeard/pdfinfo library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pointybeard / pdfinfo example snippets




declare(strict_types=1);

;

$info = new PdfInfo("test.pdf");

var_dump(
    $info,
    $info->toArray(),
    $info->toJson(),
    (string)$info,
    $info->{"Page size"},
    $info->dimensions(),
    $info->height(),
    $info->width()
);