Rows in invoice pdf

Hi at all

someone can tell me how to limit the number of detail lines in an invoice in pdf?

Thanks
Fabio