def bboxes_img(img, pdf_page, bbox):
    """Gets boundary of the table in image from the value in pdf page

    Args:
        img (narray): Image in array
        pdf_page (object): pdf page
        bbox (narray): Boundary of the table in [x1, y1, x2, y2] format where (x1, y1) is bottom-left, (x2, y2) is top right
    Returns:
        (array): an array of value representing the cordinate of the table
    """

    W_pdf, H_pdf = float(pdf_page.cropBox.getLowerRight()[0]), float(
        pdf_page.cropBox.getUpperLeft()[1]
    )
    H_img, W_img, _ = img.shape

    x1, y1 = bbox[0] * (W_img / W_pdf), (1 - (bbox[3] / H_pdf)) * H_img
    x2, y2 = bbox[2] * (W_img / W_pdf), (1 - (bbox[1] / H_pdf)) * H_img

    return [x1, y1, x2, y2, None, None]