PHP code example of ssgglobal / pdf-reactor

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

    

ssgglobal / pdf-reactor example snippets


php artisan vendor:publish

// config/app.php
[
    'aliases' => [
        'PDFreactor'    => StepStone\PDFreactor\Facades\PDFreactor::class,
    ],
]

$config = [
    'document'  => file_get_contents('data_to_convert.html'),
]

$result = $pdfreactor->convertAsync($config);