Parses text into pages and regions; a malformed file, or a rotated region, fails with a ModelException.