private PDFPage createPage(int pagenum,PDFObject pageObj) throws IOException {
  int rotation=0;
  RectF mediabox=null;
  RectF cropbox=null;
  PDFObject mediaboxObj=getInheritedValue(pageObj,"MediaBox");
  if (mediaboxObj != null) {
    mediabox=parseRect(mediaboxObj);
  }
  PDFObject cropboxObj=getInheritedValue(pageObj,"CropBox");
  if (cropboxObj != null) {
    cropbox=parseRect(cropboxObj);
  }
  PDFObject rotateObj=getInheritedValue(pageObj,"Rotate");
  if (rotateObj != null) {
    rotation=rotateObj.getIntValue();
  }
  RectF bbox=((cropbox == null) ? mediabox : cropbox);
  return new PDFPage(pagenum,bbox,rotation,cache);
}

private PDFPage createPage ( int pagenum , PDFObject pageObj ) throws IOException { int rotation = 0 ; RectF mediabox = null ; RectF cropbox = null ; PDFObject mediaboxObj = getInheritedValue ( pageObj , "MediaBox" ) ; if ( mediaboxObj != null ) { mediabox = parseRect ( mediaboxObj ) ; } PDFObject cropboxObj = getInheritedValue ( pageObj , "CropBox" ) ; if ( cropboxObj != null ) { cropbox = parseRect ( cropboxObj ) ; } PDFObject rotateObj = getInheritedValue ( pageObj , "Rotate" ) ; if ( rotateObj != null ) { rotation = rotateObj . getIntValue ( ) ; } RectF bbox = ( ( cropbox == null ) ? mediabox : cropbox ) ; return new PDFPage ( pagenum , bbox , rotation , cache ) ; }
create a pdf page object by finding the relevant inherited properties
