PHP code example of mocchi / pdf

1. Go to this page and download the library: Download mocchi/pdf 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/ */

    

mocchi / pdf example snippets


$file = new \Mocchi\Pdf\File('./file.pdf');

$file->convert(['width' => 800, 'quality' => 100, 'type' => 'png']);