Not necessary! You can set the page range via printParams to be any range that you can set via the UI, including non-consecutive.
I believe there are options to hide all the UI chrome (toolbars, etc.) when using OpenInWindowEx – check the SDK documentation.