Measure the perimeter of a square ebook