Welcome Guest, Not a member yet? Register   Sign In
CI4 PDF Customized
#21

(This post was last modified: 01-11-2022, 04:11 AM by pippuccio76.)

(04-30-2020, 04:31 PM)jreklund Wrote: This should do the trick.

Code:
composer require tecnickcom/tcpdf

Code:
composer install

PHP Code:
<?php namespace App\Controllers;

use 
TCPDF;

class 
Home extends BaseController
{
 public function 
index()
 {
 
$pdf = new TCPDF(PDF_PAGE_ORIENTATIONPDF_UNITPDF_PAGE_FORMATtrue'UTF-8'false);
 }

I use composer to install TCPDF in locale , uploaded the folder tecnickom in vendor folder on server . Uploaded the compser.json fileĀ  .In controllerĀ  ; use TCPDF;

but have this error : Class 'TCPDF' not found
Reply




Theme © iAndrew 2016 - Forum software by © MyBB