You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simply move the $pdf->AddPage() call into the for-loop.
Actually you don't use $size. If this is intentionally you can remove the line, otherwise use it.
I'm trying to add data to multiple pages, but it overwrites the data of another page.
Here is my code
$pdf = new \setasign\Fpdi\Fpdi();
$pdf->AddPage();
$pageCount = $pdf->setSourceFile('sample.pdf');
The text was updated successfully, but these errors were encountered: