
    ,h                     P    d dl mZmZmZmZ  G d d      Zej                         Zy)    )AnyOptionalTupleUnionc                   |   e Zd Z e       fdedeedeef   df   fdZ	e
	 	 	 ddee   dee   dee   d	d fd
       Ze
dd       Ze
ddee   d	d fd       Ze
ddee   d	d fd       Ze
	 	 	 	 ddee   dee   dee   dee   d	d f
d       Ze
dd       Ze
ddee   d	d fd       Ze
ddee   d	d fd       Zd	efdZy)Fitfit_typefit_argsN.c                     ddl m}m}m}  ||      | _        |D cg c]  }|t        ||      r |       n ||      ! c}| _        y c c}w )N   )FloatObject
NameObject
NullObject)_baser   r   r   r	   
isinstancer
   )selfr	   r
   r   r   r   as          U/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/PyPDF2/generic/_fit.py__init__zFit.__init__   sP     	?>"8, 
 IAz)BJLTUV
 
s   $A	lefttopzoomreturnc                 "    t        d|||f      S )a  
        Display the page designated by page, with the coordinates ( left , top )
        positioned at the upper-left corner of the window and the contents
        of the page magnified by the factor zoom.

        A null value for any of the parameters left, top, or zoom specifies
        that the current value of that parameter is to be retained unchanged.

        A zoom value of 0 has the same meaning as a null value.
        z/XYZr	   r
   r   )clsr   r   r   s       r   xyzzFit.xyz   s    " FdC->??    c                     t        d      S )ao  
        Display the page designated by page, with its contents magnified just
        enough to fit the entire page within the window both horizontally and
        vertically. If the required horizontal and vertical magnification
        factors are different, use the smaller of the two, centering the page
        within the window in the other dimension.
        z/Fitr	   r   r   s    r   fitzFit.fit#   s     F##r   c                     t        d|f      S )a{  
        Display the page designated by page , with the vertical coordinate top
        positioned at the top edge of the window and the contents of the page
        magnified just enough to fit the entire width of the page within the
        window.

        A null value for `top` specifies that the current value of that
        parameter is to be retained unchanged.
        z/FitHr   r   r   r   s     r   fit_horizontallyzFit.fit_horizontally.   s     Gsf55r   c                     t        d|f      S )Nz/FitVr   r   r   r   s     r   fit_verticallyzFit.fit_vertically;   s    Gtg66r   bottomrightc                 $    t        d||||f      S )a(  
        Display the page designated by page , with its contents magnified
        just enough to fit the rectangle specified by the coordinates
        left , bottom , right , and top entirely within the window
        both horizontally and vertically.

        If the required horizontal and vertical magnification factors are
        different, use the smaller of the two, centering the rectangle within
        the window in the other dimension.

        A null value for any of the parameters may result in unpredictable
        behavior.
        z/FitRr   r   )r   r   r*   r+   r   s        r   fit_rectanglezFit.fit_rectangle?   s    * GtVUC.HIIr   c                     t        d      S )a  
        Display the page designated by page , with its contents magnified
        just enough to fit its bounding box entirely within the window both
        horizontally and vertically. If the required horizontal and vertical
        magnification factors are different, use the smaller of the two,
        centering the bounding box within the window in the other dimension.
        z/FitBr!   r   r"   s    r   fit_boxzFit.fit_boxV   s     G$$r   c                     t        d|f      S )a  
        Display the page designated by page , with the vertical coordinate
        top positioned at the top edge of the window and the contents of the
        page magnified just enough to fit the entire width of its bounding box
        within the window.

        A null value for top specifies that the current value of that parameter
        is to be retained unchanged.
        z/FitBHr   r   r%   s     r   fit_box_horizontallyzFit.fit_box_horizontallya   s     Hv66r   c                     t        d|f      S )a  
        Display the page designated by page , with the horizontal coordinate
        left positioned at the left edge of the window and the contents of
        the page magnified just enough to fit the entire height of its
        bounding box within the window.

        A null value for left specifies that the current value of that
        parameter is to be retained unchanged.
        z/FitBVr   r   r(   s     r   fit_box_verticallyzFit.fit_box_verticallyn   s     Hw77r   c                 t    | j                   sd| j                   dS d| j                   d| j                    dS )NzFit()z, )r
   r	   )r   s    r   __str__zFit.__str__{   s9    }}$--**dmm_Bt}}oQ77r   )NNN)r   r   )N)NNNN)__name__
__module____qualname__tuplestrr   r   floatr   r   classmethodr   r   r#   r&   r)   r-   r/   r1   r3   r6    r   r   r   r      s   MRW	
	
',U43C-Dc-I'J	
  !%# $	@uo@ e_@ uo	@
 
@ @$ $ $ 
68E? 
6e 
6 
6 7(5/ 7U 7 7  !%"&!%#JuoJ J 	J
 e_J 
J J, % % 
7x 
7% 
7 
7 
8huo 
8 
8 
88 8r   r   N)typingr   r   r   r   r   r#   DEFAULT_FITr>   r   r   <module>rA      s%    . .z8 z8z ggir   