Print multiple test in same page its not working properly ? how could i do it

Reference: