getPagePosition now supports borders.