[Bug 23073] Printing specific range of pages instead of all pages fails