Mvg Willem
for($i = 0 ; $i < 4; $i++) { include('addpage.php'); }
for($i = 0 ; $i < 4; $i++) { include('addpage.php'); }
<?php
$pdf->AddPage();
// create some HTML content
$subtable = '<table border="1" cellspacing="6" cellpadding="4"><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></table>';
$html = '<h2>Ticket:</h2>
';
$style = array(
'position' => '',
'align' => 'C',
'stretch' => false,
'fitwidth' => true,
'cellfitalign' => '',
'border' => true,
'hpadding' => 'auto',
'vpadding' => 'auto',
'fgcolor' => array(0,0,0),
'bgcolor' => array(255,255,255),
'text' => true,
'font' => 'helvetica',
'font-color' => array(255,255,255),
'fontsize' => 8,
'stretchtext' => 4
);
$bMargin = $pdf->getBreakMargin();
// get current auto-page-break mode
$auto_page_break = $pdf->getAutoPageBreak();
// disable auto-page-break
$pdf->SetAutoPageBreak(false, 0);
// set bacground image
$img_file = K_PATH_IMAGES.'image_demo.jpg';//Variabele achtergrond
$pdf->Image($img_file, 0, 0, 210, 297, '', '', '', false, 300, '', false, false, 0);
// restore auto-page-break status
$pdf->SetAutoPageBreak($auto_page_break, $bMargin);
// set the starting point for the page content
$pdf->setPageMark();
// CODE 39 EXTENDED + CHECKSUM
// output the HTML content
$pdf->writeHTML($html, true, false, true, false, '');
$pdf->Cell(0, 0, ''.$_POST['username'].','.$_POST['adres'].'', 0, 1);//Variabele NAW
$pdf->write1DBarcode(''.$random.'', 'S25', '', '', '', 18, 0.4, $style, 'N');//V
?>