eOSP2/app/Http/Controllers/pdfController.php

17 lines
322 B
PHP
Raw Normal View History

2020-01-05 00:24:24 +01:00
<?php
namespace App\Http\Controllers;
use Codedge\Fpdf\Fpdf\Fpdf;
class pdfController extends Controller
{
public function createView(){
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
exit;
}
}