fpdf - going back to the previous page

后端 未结 8 2486
生来不讨喜
生来不讨喜 2021-02-10 15:45

I am generating pdf invoice using fpdf.

Some invoices containing many items, and details need to go into the second page. However, I need the total, and other details

8条回答
  •  爱一瞬间的悲伤
    2021-02-10 16:04

    I found very suitable the *str_replace* method, due to the need to write "n of m pages". First wrote the n number normally as I constructed every page and finally replaced the m cipher in $pdf->pages[$i] page by page.

提交回复
热议问题