code: def get_page_square_dpi(pageinfo, options):
      "Get the DPI when we require xres == yres, scaled to physical units"
      xres = pageinfo.xres or 0
      yres = pageinfo.yres or 0
      userunit = pageinfo.userunit or 1
      return float(
          max(
              (xres * userunit) or VECTOR_PAGE_DPI,
              (yres * userunit) or VECTOR_PAGE_DPI,
              VECTOR_PAGE_DPI if pageinfo.has_vector else 0,
              options.oversample or 0,
          )
      f get_page_square_dpi(pageinfo, options):
      "Get the DPI when we require xres == yres, scaled to physical units"
      xres = pageinfo.xres or 0
      yres = pageinfo.yres or 0
      userunit = pageinfo.userunit or 1
      return float(
          max(
              (xres * userunit) or VECTOR_PAGE_DPI,
              (yres * userunit) or VECTOR_PAGE_DPI,
              VECTOR_PAGE_DPI if pageinfo.has_vector else 0,
              options.oversample or 0,
          )
      )
docs: Get the DPI when we require xres == yres, scaled to physical units