
    khC                         d Z  G d d      Zy)z?Base page with basic properties, e.g. width, height and margin.c                   B    e Zd ZddededefdZed        Zed        Zy)	BasePageNwidthheightmarginc                 6    || _         || _        |xs d| _        y)zInitialize page layout.

        Args:
            width (float, optional): Page width. Defaults to 0.0.
            height (float, optional): Page height. Defaults to 0.0.
            margin (tuple, optional): Page margin. Defaults to None.
        )    r   r   r   N)r   r   r   )selfr   r   r   s       R/var/www/teggl/fontify/venv/lib/python3.12/site-packages/pdf2docx/page/BasePage.py__init__zBasePage.__init__   s     
(    c                 6    dd| j                   | j                  fS )N        )r   r   )r	   s    r
   bboxzBasePage.bbox   s    djj$++>>r   c                 j    | j                   \  }}}}| j                  \  }}}}||z   ||z   ||z
  ||z
  fS )zbbox with margin considered.)r   r   )	r	   x0y0x1y1LRTBs	            r
   working_bboxzBasePage.working_bbox   sE     BB[[
1a1bdBqD"Q$''r   )r   r   N)	__name__
__module____qualname__floattupler   propertyr   r    r   r
   r   r      s@    )U )u ) ) > > ( (r   r   N)__doc__r   r    r   r
   <module>r"      s    E( (r   