HI
I need to draw rectangle on a pdf
can i put php code in Content of TCPDF function?
If yes, how i can refer to pdf to draw shapes?
eg.
if i use pure php i write something like this
// Include the main TCPDF library (search for installation path).
require_once('tcpdf_include.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// Rect
$pdf->Text(100, 4, 'Rectangle examples');
$pdf->Rect(100, 10, 40, 20, 'DF', $style4, array(220, 220, 200));
$pdf->Rect(145, 10, 40, 20, 'D', array('all' => $style3));
If i use tcpdf "from scratch" i can refer to $pdf object but how in in chronoforms/connectivity ?
Can i refer to "$pdf" ??
Or i have to made pdf from scratch and call tcpdf etc?
I need to draw rectangle on a pdf
can i put php code in Content of TCPDF function?
If yes, how i can refer to pdf to draw shapes?
eg.
if i use pure php i write something like this
// Include the main TCPDF library (search for installation path).
require_once('tcpdf_include.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// Rect
$pdf->Text(100, 4, 'Rectangle examples');
$pdf->Rect(100, 10, 40, 20, 'DF', $style4, array(220, 220, 200));
$pdf->Rect(145, 10, 40, 20, 'D', array('all' => $style3));
If i use tcpdf "from scratch" i can refer to $pdf object but how in in chronoforms/connectivity ?
Can i refer to "$pdf" ??
Or i have to made pdf from scratch and call tcpdf etc?