How to put multiple orders into one pdf page if space

When printing invoice pdf it puts each order into separate pdf page. But is it possible to put them on one page and if the page is full only then make another one.