automatically recognize doublepage boundary and cut it