17 lines
322 B
PHP
17 lines
322 B
PHP
<?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;
|
|
}
|
|
}
|