cutting pages based on rawData size to cut the page

use rawData size to cut pages