divide page in pdf with page break using php code example
Example: divide page in pdf with page break using php
$itemCount = 0;
foreach ( $invoice['InvoiceDetail'] as $key=>$item){
$itemCount++;
$html .= '';
/* snip */
if ($itemCount % 20 == 0) {
$html .= ' ';
}
$html .= ''.$itemNo.'
';
$html .= ''.$itemName.' ';
$html .= ''.$price.' ';
$html .= ''.$quantity.' ';
$html .= ''.$total.' ';
$html .= '';
}