docs: def getBox(box, pagesize):
      """
      Parse sizes by corners in the form:
      <X-Left> <Y-Upper> <Width> <Height>
      The last to values with negative values are interpreted as offsets form
      the right and lower border.
      """
      box = str(box).split()
      if len(box) != 4:
          raise Exception("box not defined right way")
      x, y, w, h = [getSize(pos) for pos in box]
      return getCoords(x, y, w, h, pagesize)