Printing a Prescription with more than 3 drugs

I want to change the number of drugs appear on the prescription. Now it is just three rows on the prescription. If I add four then the printout will become 2 pages. I want them on one page. Is it possible?

This can be modified in C_Prescription.class.php in the multiprint_action() function near line 710.

Specifically
if (++$on_this_page > 3 || $p->provider->id != $this->providerid) {
The 3 can be changed to whatever is required.

@neville thank you. @cyril please check this.