Update cpdf class to support pages->pages->page structure (for varying mediaBox)