PHP code example of whiteoctober / tcpdf-bundle

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

    

whiteoctober / tcpdf-bundle example snippets


// config/bundles.php
return [
    // ...
    WhiteOctober\TCPDFBundle\WhiteOctoberTCPDFBundle::class => ['all' => true],
    // ...
];
 php
// app/AppKernel.php


public function registerBundles()
{
    $bundles = array(
        // ...
        new WhiteOctober\TCPDFBundle\WhiteOctoberTCPDFBundle(),
    );
}
 php
$pdfObj = $container->get("white_october.tcpdf")->create();