Now prints more than one page if needed
(short: I copied the edit code for printing :D)