o
    eC  ã                   @   s   d Z G dd„ dƒZdS )z?Base page with basic properties, e.g. width, height and margin.c                   @   s<   e Zd Zddededefdd„Zedd	„ ƒZed
d„ ƒZdS )ÚBasePageç        NÚwidthÚheightÚmarginc                 C   s   || _ || _|p	d| _dS )zúInitialize 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   © r   úFD:\Projects\ConvertPro\env\Lib\site-packages\pdf2docx/page/BasePage.pyÚ__init__   s   	zBasePage.__init__c                 C   s   dd| j | jfS )Nr   )r   r   )r   r   r   r	   Úbbox   s   zBasePage.bboxc           	      C   s8   | j \}}}}| j\}}}}|| || || || fS )zbbox with margin considered.)r   r   )	r   Zx0Zy0Úx1Úy1ÚLÚRÚTÚBr   r   r	   Úworking_bbox   s   zBasePage.working_bbox)r   r   N)	Ú__name__Ú
__module__Ú__qualname__ÚfloatÚtupler
   Úpropertyr   r   r   r   r   r	   r      s    
r   N)Ú__doc__r   r   r   r   r	   Ú<module>   s    