여기에서 얻을 : https://github.com/barryvdh/laravel-dompdflaravel dompdf의 모든 페이지에 페이지 번호를 추가하는 방법은 무엇입니까?
내 컨트롤러는 다음과 같이이다 :
public function listdata()
{
$pdf=PDF::loadView('print_tests.test_pdf');
$pdf->setPaper('L', 'landscape');
return $pdf->stream('test_pdf.pdf');
}
내보기는 다음과 같이이다 :
나는 모든 페이지를 원하는<table>
<tr>
<th>header1</th>
<th>header2</th>
<th>header3</th>
</tr>
<tr>
<td>content-row-1</td>
<td>content-row-1</td>
<td>content-row-1</td>
</tr>
<tr>
<td>content-row-2</td>
<td>content-row-2</td>
<td>content-row-2</td>
</tr>
</table>
는 페이지 번호
있다나를 도울 수있는 사람이 있습니까?
너 봤어? 수락 된 답변은 여기에서 찾을 수 있습니다. http://stackoverflow.com/questions/19983610/how-to-get-page-number-on-dompdf-pdf-when-using-view –