Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

page break in dompdf

@php $check=0 @endphp
@foreach($array as $item)
@php $check++ @endphp
  <!-- your code or something like divs -->
@if( $check % 5 == 0 ) 
     @php echo '<div class="page-break"></div>'; @endphp .... 
 @endif
@endforeach
 
PREVIOUS NEXT
Tagged: #page #break #dompdf
ADD COMMENT
Topic
Name
2+3 =