In our application we must choose either side-by-side or top-down layout for each section of a PDF document, based on whether the image in that section is tall and skinny (portrait) or short and wide ...