docs: def set_size(self, width_in_points, height_in_points):
          """Changes the size of a PostScript surface
          for the current (and subsequent) pages.
  
          This method should only be called
          before any drawing operations have been performed on the current page.
          The simplest way to do this is to call this method
          immediately after creating the surface
          or immediately after completing a page with either
          :meth:`~Surface.show_page` or :meth:`~Surface.copy_page`.
  
          :param width_in_points:
              New width of the page, in points (1 point == 1/72.0 inch)
          :param height_in_points:
              New height of the page, in points (1 point == 1/72.0 inch)
          :type width_in_points: float
          :type height_in_points: float
  
          """
          cairo.cairo_ps_surface_set_size(
              self._pointer, width_in_points, height_in_points)
          self._check_status()