PHP code example of adibenc / fpdfb
1. Go to this page and download the library: Download adibenc/fpdfb 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/ */
adibenc / fpdfb example snippets
use Fpdf\Fpdf;
class CustomPdf extends Fpdf
{
public function __construct(
$orientation = 'P',
$unit = 'mm',
$size = 'letter'
) {
parent::__construct( $orientation, $unit, $size );
// ...
}
}
sh
php composer.phar update
php
$pdf = new Fpdf();