Is their a way that I can go back to a previous page after calling addPage more than once because when I call write it adds it to the current page where I need it to write on the first page. I have been through its documentation and cannot seem to find anything?
By the way I am creating my pdf in php
Thanks
This was solved using the following code,
$numPages = $fpdi2->getNumPages();
for($int=1;$int < $numPages + 1; $int++){
$fpdi2->setPage($int );
// do your code here with that page
}
You have to change your program logic.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With