Answers for "page break in dompdf"

0

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
Posted by: Guest on April-16-2021

Browse Popular Code Answers by Language