How to calculate pixel height with PHP

0

I have a screen that generates a report with a limit amount of tables that can not be broken.

I have to paginate this report. How to calculate the height of the generated pixels?

    
asked by anonymous 09.08.2017 / 21:28

1 answer

4

With php I think it's not possible, friend, because it's server-side, but with javascript it's possible, give an ID to the table and then do that

var tabela = document.getElementById('tabela');
var altura = tabela.innerHeight;
alert(altura);
    
09.08.2017 / 21:40