Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
_fit.cpython-313.pyc131 linesDownload Raw Back to __pycache__
1�

2s�j���X�SSKJrJrJr SSKJr "SS5r\R5rg)�)�Any�Optional�Union�)�is_null_or_nonec��\rSrSrSS\S\\S\\4S4SS4Sjjr	\3SS\\S	\\S4\\SS4Sjj5r\5SSj5r
\6SS	\\SS4S
jj5r\7SS\\SS4Sjj5r\8SS\\S\\S\\S	\\SS49Sjj5r\10SSj5r\11SS	\\SS4Sjj5r\12SS\\SS4Sjj5rS\4SjrSrg)�Fit��fit_type�fit_argsN.�returnc��SSKJnJnJnJn U"U5UlUVs/sH"n[
U5(aU"5OU"U5PM$ snUlgs snf)Nr)�FloatObject�13NameObject�14NullObject�NumberObject)�_baserrrrrrr)�selfrrrrrr�as        �XD:\code\apps\devtools\python\user_packages\Python313\site-packages\pypdf/generic/_fit.py�__init__�Fit.__init__sO��	M�L�"�8�,��
�LT�M15�LT�q�O�A�.�.�J�L�K��N�B�H�M16��
��M17s�)A�left�top�zoomc��[SXU4S9$)a�18Display the page designated by page, with the coordinates (left, top)19positioned at the upper-left corner of the window and the contents20of the page magnified by the factor zoom.21 22A null value for any of the parameters left, top, or zoom specifies23that the current value of that parameter is to be retained unchanged.24 25A zoom value of 0 has the same meaning as a null value.26 27Args:28    left:29    top:30    zoom:31 32Returns:33    The created fit object.34 35z/XYZ�rr�r	)�clsrrrs    r�xyz�Fit.xyzs��4�F�d��->�?�?�c��[SS9$)a@36Display the page designated by page, with its contents magnified just37enough to fit the entire page within the window both horizontally and38vertically.39 40If the required horizontal and vertical magnification factors are41different, use the smaller of the two, centering the page within the42window in the other dimension.43z/Fit�rr�rs r�fit�Fit.fit-s���F�#�#r"c��[SU4S9$)a{44Display the page designated by page, with the vertical coordinate top45positioned at the top edge of the window and the contents of the page46magnified just enough to fit the entire width of the page within the47window.48 49A null value for ``top`` specifies that the current value of that50parameter is to be retained unchanged.51 52Args:53    top:54 55Returns:56    The created fit object.57 58z/FitHrr�rrs  r�fit_horizontally�Fit.fit_horizontally:s��$�G�s�f�5�5r"c��[SU4S9$)Nz/FitVrr�rrs  r�fit_vertically�Fit.fit_verticallyNs���G�t�g�6�6r"�bottom�rightc��[SXX44S9$)a,59Display the page designated by page, with its contents magnified60just enough to fit the rectangle specified by the coordinates61left, bottom, right, and top entirely within the window62both horizontally and vertically.63 64If the required horizontal and vertical magnification factors are65different, use the smaller of the two, centering the rectangle within66the window in the other dimension.67 68A null value for any of the parameters may result in unpredictable69behavior.70 71Args:72    left:73    bottom:74    right:75    top:76 77Returns:78    The created fit object.79 80z/FitRrr)rrr0r1rs     r�
fit_rectangle�Fit.fit_rectangleRs��>�G�t�U�.H�I�Ir"c��[SS9$)aR81Display the page designated by page, with its contents magnified just82enough to fit its bounding box entirely within the window both83horizontally and vertically.84 85If the required horizontal and vertical magnification factors are86different, use the smaller of the two, centering the bounding box87within the window in the other dimension.88z/FitBr$rr%s r�fit_box�Fit.fit_boxss���G�$�$r"c��[SU4S9$)a89Display the page designated by page, with the vertical coordinate top90positioned at the top edge of the window and the contents of the page91magnified just enough to fit the entire width of its bounding box92within the window.93 94A null value for top specifies that the current value of that parameter95is to be retained unchanged.96 97Args:98    top:99 100Returns:101    The created fit object.102 103z/FitBHrrr)s  r�fit_box_horizontally�Fit.fit_box_horizontally�s��$�H��v�6�6r"c��[SU4S9$)a�104Display the page designated by page, with the horizontal coordinate105left positioned at the left edge of the window and the contents of the106page magnified just enough to fit the entire height of its bounding box107within the window.108 109A null value for left specifies that the current value of that110parameter is to be retained unchanged.111 112Args:113    left:114 115Returns:116    The created fit object.117 118z/FitBVrrr-s  r�fit_box_vertically�Fit.fit_box_vertically�s��$�H��w�7�7r"c�~�UR(dSURS3$SURSURS3$)NzFit(�)z, �rr)rs r�__str__�Fit.__str__�s9���}�}��$�-�-���*�*��d�m�m�_�B�t�}�}�o�Q�7�7r"r@)�)NNN)r
r	)N)NNNN)�__name__�119__module__�__qualname__�__firstlineno__�str�tupler�floatrr�classmethodrr r&r*r.r3r6r9r<rA�__static_attributes__rCr"rr	r	s���MO�120��121�',�U�4���3C�-D�c�-I�'J�122�	
�123��!%�#� $�	@��u�o�@��e�_�@��u�o�	@�124125�@��@�6�126$��127$��6�8�E�?�6�e�6��6�&�7�(�5�/�7�U�7��7��!%�"&�!%�#�J��u�o�J����J����	J�128�e�_�J�129�
J��J�@�130%��131%��7�x���7�%�7��7�&�8�h�u�o�8��8��8�&8��8r"r	N)	�typingrrrrrr	r&�DEFAULT_FITrCr"r�<module>rOs(��'�'�"�e8�e8�P�g�g�i�r"
codekingpro/portable-devtools · Team Ai