PHP code example of paliari / fpdf
1. Go to this page and download the library: Download paliari/fpdf 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/ */
paliari / fpdf example snippets
f = new \Fpdf\Fpdf();
$pdf->setFont('Arial');
$pdf->addPage();
$pdf->cell(190, 10, 'Batata frita', 1);
/**
* I: send the file inline to the browser.
* D: download.
* F: save to a local file with the name.
* S: return the document as a string.
*/
$pdf->output('I');