PHP code example of tonystore / fpdf-laravel
1. Go to this page and download the library: Download tonystore/fpdf-laravel 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/ */
tonystore / fpdf-laravel example snippets
use Illuminate\Support\Facades\Storage;
//create pdf document
$pdf = new Fpdf('P', 'mm', 'A4'); //Attributes assigned to the document.
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output(); // 'I' is the default output.
exit;