Function printer:setFromTo specifies the indices of the page range to print. If both frompage and topage are zero (the default), the whole document is printed.