Support landscape input documents, part 2.