add docHeight and docWidth attributes