I am using mpdf to generate certain tables on a pdf. Each table has a title text on top of it. I want to know the current y coordinate of the page to make the output proper. Currently sometimes the title comes on 1 page and the table on the next

I tried using $mpdf->GetY() 

but it gives an error. Please help

有帮助吗?

解决方案

Hi i got the solution to my question..used $mpdf->y which returned my y position. So i could check if the y position is greater than the approx height of the table. :)

其他提示

class mPDF has a public property $y

You can directly get Y co-ordinate by accessing this variable.

Check if that works for you.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top