fpdf - going back to the previous page

后端 未结 8 2508
生来不讨喜
生来不讨喜 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:01

    Some clever solutions here, but I don't recommend this trickery, because it goes against the basic FPDF model and will sooner or later probably cause other problems down the road.

    Programming is already complex enough!

    So, separate the model of the invoice or whatever it is from the presentation. Construct the entire model. Then output the presentation (the PDF in this case).

提交回复
热议问题