%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/reportlab/lib/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/reportlab/lib/__pycache__/corp.cpython-312.pyc

�

��ej�� �dZdZddlmZmZddl�ddl�ddlmZddl	m
Z
mZmZm
Z
mZmZddlmZddlmZmZmZmZdd	lmZGd
�de�ZGd�d
e�ZGd�de�ZGd�d�ZGd�de�Zgd�fd�Zedk(re�yy)z3.3.0z�Generate ReportLab logo in a variety of sizes and formats.


This module includes some reusable routines for ReportLab's
 'Corporate Image' - the logo, standard page backdrops and
 so on - you are advised to do the same for your own company!�)�inch�cm)�*)�DecimalFormatter)�
definePath�Group�Drawing�Rect�PolyLine�String)�Widget)�Color�black�white�
ReportLabBlue)�stringWidthc��eZdZdZed5ideed��deed��deed��deed	��d
eed��deed
��deed���deed���deed���deed���deed���deed���deed���deed���dee	e
ee
d d �!�f�d"���d#ee
d$���d%ee
d&���d'eee	e
eed d �!�f��d(���d)eee	e
eed d �!�f��d*���d+eee�d,����Zd-�Zd.�Zd/d/d0d1ed0d0fd2�Zed3��Zd4�Zy0)6�RL_CorpLogoz;Dinu's fat letter logo as hacked into decent paths by Robin�xzLogo x-coord�yzLogo y-coord�anglez
Logo rotation�strokeColorzLogo lettering stroke color�	fillColorzLogo lettering fill color�strokeWidthzLogo lettering stroke width�
backgroundzLogo background color)�desc�borderzLogo border color�borderWidthzLogo border width (1)�shadowz,None or fraction of background for shadowing�widthz)width in points of the logo (default 129)�heightz)height in points of the logo (default 86)�skewXzx-skew of the logo (default 10)�skewYzy-skew of the logo (default 0)�showPage�)�lo�hiz7If true or (true(top),true(bottom)) show the page lines�xFlipzIf true do x reversal�yFlipzIf true do y reversal�oColorsz1None or fill/stroke colors for the o in ReportLab�
pageColorsz/None or fill/stroke colors for the page outline�precz-None or precision negative means strip excessc�,�t|_d|_d|_t|_d|_d|_d|_d|_	d|_
dx|_x|_x|_
x|_|_d|_d|_d|_d|_d|_d|_y)	N皙�����?���?�V�r�
g�A@)rrrrrrrrrr!r rrrr#�_dxr"�_dyr$r*r+r,��selfs �4/usr/lib/python3/dist-packages/reportlab/lib/corp.py�__init__zRL_CorpLogo.__init__.s������������'�����������������
�?@�@���@���@�$�*�@�t�z�D�H���
������
���������	�c�h�t|j|j�}|j|�|S�N�r	r r!�add�r7�Ds  r8�demozRL_CorpLogo.demo@�&���D�J�J����,��	���d���r:rNr.c	
�j�gd�}	gd�}
|j}g}|r?t|�s||f}|dr|jgd��|dr|jgd��|rC|j|	|j�}	|jt
|	|d||d||���n|
|	z
}
|jrE|rC|j||j�}|jt
||d||d||���n|
|z
}
|j|
|j�}
|jt
|
|||||���y)N))�moveTo���"�
O@�
cA@)�curveTorEg��T���@g�CQ�O�N@gG8-x�W@gı.n�N@g:]��?)rGg�a��wM@g�n����?gM2r��L@�B��ѿg��y�K@rH)rGg���7�~J@rHg7l[�٨I@�
��ϛ��?g�Ǻ�	I@�cb�qm��?)rGgO@a�kH@g+��	�@�)�^�H@���<7@rK��{�丳@)rGrKg��3.�!@g��K7�mH@g㈵�%@gףp=
I@����Ƒ'@)rGg�CV�I@��3��'*@g�P�f�J@�m9��r+@gh��|?�K@rP)rGg�D��L@rPgd�C�M@g}y��)*@g�D���N@g��� �'@)rGgʉv�N@gf�L2r%@rEg�E��ɀ!@rErF�	closePath)rD���]L@rM)rGrRgT:X��@gw��/YL@g�Z��K}@gVe��OL@g��mn @)rGgX�eSFL@g�%��:� @g�x]�8L@g�_YiR�!@g�qm�'L@g͒5�"@)rGg�J�hL@g�ŧ�"@g���+L@g*�� #@g���m�K@�7T��7q#@)rGg���̯�K@g�����#@g�<��K@�b('�#@gΪ��V�K@rT)rGg�	�8XK@rT�rm��'K@g�o��eQ#@�jj�ZK@gV��y�"@)rG�f,���J@g�y�!@�[Ɏ��J@g�9@0@rX�'�o|��@)rGrXg�j+���@rWgZ�!��@rVgN�w(
t@)rGrUgR��"@g)�^�XK@���	�@g'1��K@rZ)rGgrP�L��K@rZg:]��K@g�����@g��4�R%L@g,H3Mg@)rGgףp=
KL@g/n��@rRgW	�3@rRrMrQ)�)rDg�\m�r/@r)�lineTog�ME*��"@r)r[gDL�$z�@gE�$]3Y@)rGgZ
�{,}@gǺ���@g�c#�K@g"T��m@gۊ�e�@g�.Q�50@)rGg��=�@g���_�@g�7�g@g�`����@gWC�K�@��6T�@)r[�a���)@rY)r[r]r)r[�U��7��?r)r[r^�����13@)r[g��Sr�@r_)rGg���EB"@r_g<���	�%@g��&kԻ2@gʉv�(@g|a2U�1@)rGg�e�I�+@g{�Fw�0@�"��u�|-@g��4)�-@r`g�_��M�)@)rGr`gŬC9�$@g�U+~I+@g#J{�/�!@g4�Op��&@r\rQ)rD�K�hF@��`�$@)r[göE�
�@rb)rGg�s�x@rbg�,`��@gpB!%@g�g��� @g����m�%@)rGg����!@g�SW>��&@�"�uq
"@g/�
�(@rcg�ӂ}u)@)rGrcg���B�S,@g��6qb @�WV���-@g�W�f,@rd)r[rardrQ)rD�.���9@��?��2@)r[gnLOX�y>@gw��N#�@)rGg;�� �>@gQ�y@g�7�0V=@g�e6H�?g��T�7<@g�ԕ��<�?)rGg~W�[;@g|�wJ�?g��x#�9@rH�"�uq�7@rH)rGg'k�C4�5@rHg0�r.4@g�pZ��?g�t��2@gNё\�C�?)rGg���4�1@g�k�,	�@�aۢ�0@g0�AC��@rhgcz��@)rGrhgJ+�6!@g��{���1@gUMu�$@g��E_�2@gܝ��^'@)rGg�|��=4@g�vR~*@g�Ր���5@�\�tYLl+@gF�žv�7@ri)rGg�SW>�:@rig
p�;@gs�,&6*@g��W�2�<@g0�'�'@)rGg��)t^>@g��Bs��$@�;�� �>@g���m!@rjg�8��m4@)r[g+��p�>@��aۢ�@)r[gTƿϸ�6@rk)rGgS��:�6@g��+@g�g�7@����@rgrl)rGgZ�wgu8@rlg��M�8@gB��	\@rerfrQ)rD�r�CQ�/9@�L�$z� @)rGrmg�}8g4!@g��b'9@g~��7�!@gW>���9@g�nض("@)rGgX��0_9@g�=�$@}"@gs.�Ue�8@�F�žv�"@g�d�,��8@g�x@�$#@)rGg�K�u�8@rSg��e1��8@g����#@g��u�i8@g|~!<�#@)rGg}˜.�A8@g����$@g����8@�>"�D$@g�����7@rp)rGgk�)ƃ7@rpg$��37@g�Zd�#@gu�V�6@g��	�(#@)rGgS�
c�6@g1����"@���bg�6@g�ht��!@rqrnrQ)rD�t��gy.C@�bg
���)r[�_��i@@rs)r[rt��d�F�*@)r[rrru)r[�{Ic��C@gQ�y'@)rGg�3��<C@gYni5$�'@g �U+ZC@g^�/�
�(@g"�D�xC@gE�$]3)@)rGg�x]�C@g,e�X�)@��N^�C@g{Nz�*@g]��ʾ�C@�2ZGUt*@)rGg�V	�C@g�e�-�*@g���%D@g�"2��
+@g`���MD@g.���16+@)rGg�tYLlvD@gXV���^+@g+ٱ��D@rPgE*�-�D@rP)rGg>�
�E@rPg����"F@rOg �U+�F@rN)rGg�~�nG@g��g?R%@����AG@g��:���!@ry�+j0�@)rGryrLg��\m�
G@gIh˹�@ga2U0*�F@rJ)rGg���1F@rIgs�E@rHg���4c�D@rH)rGg��4�R5D@rHg�&S�C@g8��P�?rvg[��K�<�?)rGgꕲq$C@�����y�?gy�@e�'C@g�ϸp ��?giW!�')C@g�	h"lx�?)rGgd���,C@g)"�*���?rrg�//�>:�?rrg�R�!�uٿrQ)rD�k+���cD@�K�R��e@)rGr|g�U+~�@g��ekUD@gRD�U�� @g���)�8D@g'�UH��!@)rGg���ĬD@gQf�L2�"@g�,`��C@�'I�L>#@g��:��C@r~)rGg��=�
PC@r~�p��1=C@g[닄�\!@rgPp��3@)rGrg��ʾ+�@gCV�zNNC@�O�z1�S@rwr�)rGg���e�C@r�g0�ACD@g��Dذ@g��ڧ�5D@gW�}W�@)rGg�[Ɏ�TD@g�e�-�@r|g���_v�@r|r}rQ)rD��J�RrQ@r)r[�p=
�P@r)r[r�ru)r[r�ru)r[g��H�_Q@g����P�%@)rGg�$#ga�Q@g�n���)@g�B���Q@焁��Å+@�O�I�iR@r�)r[r�g��ʡU @)rGgt�^�BR@g	�c� @g����!R@�Bx�q�:!@gT�g�R@r�)rGg��a�Q@r�g��bg�Q@gX�L��� @g}iƘQ@g[B>�ٌ@)rGgZ� Q@g*��g�@r�g�a���@r�gQ�y@rQ)rD����(ycT@r)r[�R,��S@r)r[r�ro)r[��MbX�R@ro)r[r�ru)r[r�ru)r[r��|~!d1@)r[r�r�)r[r�ru)r[���	�T@ru)r[r�ro)r[r�rorQ)rD�Z���W@r)r[�2�}�EU@r)r[r�r_)r[�<I�f�V@r_)r[r��4�i��r@)r[r�r�rQ)rD�',�[@r)r[��}"Z@r)rGgU0*� Z@g����~��?g�ao"Z@g|,}��?gn��4$Z@g?�ܵ�|�?)rGg���%Z@g���?g����'Z@g�e�c]@gd���)Z@g�䠄@)rGgg��67�Y@g�[�tYL�?gR���Y@rHg�"��2Y@rH)rGg�ŊL�X@rHg�d�F�X@g�����?g��	��]X@gz6�>W�?)rGg�W�L�)X@g��Tގ�@�N�w(
X@g1%��e@r�gr���?@)rGr�g-��#��!@g��7�*X@god�C%@g�lV}`X@g��j+��'@)rGgR,���X@g���dp4*@g��H.�X@rPg���<�;Y@rP)rGg��鲘�Y@rPg!�A	3�Y@gIh˹�)@g�ME*�!Z@grm��&@)rGg
.V�` Z@g0
�G��&@g��9�}Z@g���?'@gw;S�Z@gh��~'@)rGg����MZ@gX�eS�'@g���<�Z@gޓ��Z�'@r�g��e�(@)r[�k}�ЖZ@g��\mŮ)@)r[g�?���Z@ru)r[r�rurQ)rDr���	h"�@)rGr�g���N�@g<�DZ@gC�K:@g�J�8�Z@g0�ACO @)rGgE
�a�Z@gQ�|!@g�q�t�Z@g�7��̒!@g[%X�Z@gP0�A"@)rGg鷯�Z@g����s"@g3P�>�Y@g1��PN�"@g$bJ$��Y@g���h�"@)rGgt{Ic�Y@g�ؙB�%#@g�"�-��Y@r~g��p�W�Y@r~)rGg�A&9�Y@r~�0�r.uY@g��(\� @r�g�,C�@)rGr�g�6�ُ�@g�2��Y@�_)�Ǻ@g��u��Y@r�)rGg�Pk��Y@r�r�g��7��l@r�r�rQ)rDg��ypw�]@r)r[�Ǻ��$\@r)r[r��W�}W�4@)r[�#���]@r�)r[r�gJ�F+@)rGr�gd*��*@gɎ�@��]@g{Nz��(@g,g~5�]@g�s�^�&@)rGg�*5{��]@gs�,&6�(@g|��S�]@g��_��)@g:��KT�]@rx)rGg�Q��^@g��|��+@g1|DL�0^@rPgO��ed^@rP)rGg�����^@rPg��HK�_@g[rP2*@g{1��D_@gĔH���'@)rGgK�8��y_@gi:;5%@��lV}�_@g2r���!@r�g��v��Z@)rGr�gOGɫ�@gm�y_@g��bb��@g���IB_@g�=\rܩ�?)rGgGɫs_@���K7�?gp�n��^@rHgm�/�`^@rH)rGg�}"O2^@rHg�X��
^@g�=~oӿ�g�<I�f�]@g��Bs�F�?)rGg��0|�]@r�g��	h"�]@g�4)�^�?g�|гY�]@g��a��?)rGgq>?��]@g$���+�?g�� ��]@r{r�g�,&6�?)rGg�{��]@g����R�?gV-��]@g{Ic��*�?g|���G�]@g�K7�A`�?)rGg�u��݈]@g�f���?gZ��Bs�]@g��� �?g�!7�
�]@g�P���?rQ)rD�}iƢ%^@rz)rGr�g;�f�?!@g���_�^@痐z6+#@g֨�ht�]@r�)rGg�-�l�]@r��5��{]@g�\���Z!@r�gm9��r@)rGr�g%#gaO�@gH�I�O�]@�r�CQ�@g\r�)�]@r�)rGg#��Jv^@r�r�g����@r�rzrQr))rD�WV��Z@@�%��e-@)r[r���G���G@)r[gr3܀	T@r�)r[�/�
Ҍ�V@g�$]3��B@)r[r��X9��4@)r[玒W�JU@r�)r[r����bg�>@)r[��.�jR@r�)r[r��;��)E@)r[�W	�3'C@r�)r[r�r�rQ)rD�rh���S@��%ǝ�)B@)r[r�r�)r[r�r�rQr/)	)rDr���VC"�)r[r��LqU�w�9�)r[r�r�)r[r�箞��7>��)r[r�r�)r[r���Բ�&?�)r[r�r�)r[r�r�rQ)rrr�dx�dy)r$�isSeq�extend�	applyPrecr,r>r)
r7�gr�r�rrr�_ocolors�_pagecolors�OP�Pr$�PPs
             r8�
_paintLogozRL_CorpLogo._paintLogoEs1��q��	
���=�=��
�����?�$�X�.����{��	�	�s�t���{��	�	�U�V������4�9�9�-�B�
�E�E�*�R�H�Q�K�K�Zb�cd�Ze�jl�qs�t�u�
��G�A��=�=�[�����4�9�9�-�B�
�E�E�*�R�K��N�{�]h�ij�]k�pr�wy�z�{�
��G�A��N�N�1�T�Y�Y�'��	���j��{�{�U^�ce�jl�m�nr:c��|�|Sgj}t|��}|D]]}t|�rHgj}|D]+}t|t�rt	||��}||��-|j
}||��_|j
S)N)�places)�appendrr��
isinstance�float�__self__)r�r,�R�f�p�n�es       r8r�zRL_CorpLogo.applyPrecjs����<����I�I���D�)���	�A��Q�x��I�I����A�!�!�E�*�!�!�A�$�K���a�D���J�J��
�a�D�	��z�z�r:c�r�|j}|j}t�}|j}|j}|j
}|j}|j|j}	}|rY|�Bd|cxkrdkr7nn4t|j|z|j|z|j|z�}|j|dd|��|j||||jxsd|jxsd��|j!|j"|j$��|j'|j(|j*�t�}
|
j-|�d\}}|j.|j0}}
|s|r$|r"|
j3dt5dd|||||�	��|
|k7s||k7r*|
j7|
t9|�z|t9|�z�|j:}|j:rA|
d
z|d
z}}
|
j'|
|�|
j=|�|
j'|
|�t?|dd�xrdxsd}t?|d
d�xrdxsd}|s|rE|xsd}|xsd}|
j'||z|
|zz||	z||zz�t|
|dd|ddf��}
|
S|
j'||	�|
S)Nrr/��r%)r�r�r)rrr�r���kx�ky)r2r1)rrrg@r(���r))�	transform) rrrrrrrrrr�red�green�bluer�r*r+�skewr"r#�shiftr4r5r>r r!�insertr
�scaler�r�rotate�getattr)r7rrr��bg�bd�bdwrrr�G�_w�_h�w�hrr(r)�sx�sys                    r8�drawzRL_CorpLogo.drawzsd���N�N�	��&�&���G��
�_�_��
�[�[�����������v�v�t�v�v�1��
��!�a��k��k��r�v�v�f�}�R�X�X�f�_�R�W�W�V�^�L���O�O�A��!�f�O�=�����I�+����-��$�/�/�:Q�T�	�	S�	���$�*�*�����,�	���������"��G��	���a�����B��z�z�4�;�;�1��
�"��
�H�H�Q�t�A�a��2��r�c�R�S��b�5�A�r�E�1�7�7�1�U�2�Y�;�q��r��{�;��
�
���:�:��R�4��2��q�A�
�G�G�Q�B��r�N�
�H�H�U�O�
�G�G�A�a�L���W�Q�'�.�B�3�!����W�Q�'�.�B�3�!���E���!�B���!�B�
�G�G�B�q�D��5��L��A��e�A�g��.��a�2�a��"�Q�q�/�2�A���
�G�G�A�a�L��r:�)�__name__�
__module__�__qualname__�__doc__�AttrMap�AttrMapValue�isNumber�
isColorOrNone�isNumberOrNone�EitherOr�	isBoolean�
SequenceOf�NoneOr�isColor�isInt�_attrMapr9rArr��staticmethodr�r�r�r:r8rrs��E��
���.�1�
���.�1�
��X�o�6�
�#�=�2O�P�	
�
!��0K�L�
�#�8�,I�J�

�"�-�5L�M�
��m�1D�E�
�#�8�1H�I�
��n�2`�b�
��X�,W�X�
��h�-X�Y�
��X�,M�N�
��X�,L�M�
� ��)�J�y�A�QR�4S�)T� U�]V�W�
� �Y�-D�E�!
�"�Y�-D�E�#
�$�v�h��
�=�TU�YZ�8[�/\�&]�^�eX�Y�%
�&"�&��7�:�m�WX�\]�;^�2_�)`�"a�hY�Z�'
�(�F�5�M�/^�_�)
�H�.�$�
 !�Q�D�c�UZ�ei�w{�#o�J�
��
�(r:rc��eZdZd�Zy)�RL_CorpLogoReversedc�Z�tj|�t|_t|_yr<)rr9rrrrr6s r8r9zRL_CorpLogoReversed.__init__�s�����T�"����&��r:N)r�r�r�r9r�r:r8r�r��s��'r:r�c
��eZdZdZeee�ee�ee�ee�ee�ee���Z	dZ
dZdZdZ
dZd�Zd	�Zdd�Zdd�Zdd
�Zd�Zy
)�RL_CorpLogoThinz�The ReportLab Logo.

    New version created by John Precedo on 7-8 August 2001.
    Based on bitmapped imaged from E-Id.
    Improved by Robin Becker.)rrr!r rrg�V@ga@zR e p o r t L a b�Helvetica-Bold�c��t|_t|_d|_d|_|j|_|j|_	y�Nr)
rrrrrrr�r!r�r r6s r8r9zRL_CorpLogoThin.__init__�s5��&��� ����������g�g����W�W��
r:c�h�t|j|j�}|j|�|Sr<r=r?s  r8rAzRL_CorpLogoThin.demo�rBr:Nc�`�t|||j|j|j|��S)N)�fontName�fontSizer)r�_text�	_fontName�	_fontSize)r7rr�colors    r8�_getTextzRL_CorpLogoThin._getText�s$���a��4�:�:�������ch�i�ir:c��|j}|�d}|�t|�}t||||j|j�Sr�)r�lenrrr)r7r��l�texts    r8�_swzRL_CorpLogoThin._sw�s>���z�z���9�!�a��9�#�d�)�a��4��!�9�T�^�^�D�N�N�C�Cr:c���d|zd|z}}d}|dz
|dz}
}	||dz
||	||	||dz
g||dz||
||z
|
||
|z
||d	zg
|dz
|
|dz
|
|z
||
|z
gg}|D] }|jt|||d
����"y)Ng������?@g�G�z>T@r3�"g@I@�r/��r)rr�strokeLineJoin)r>r)
r7r�rrr�r��x1�x2�fL�y1�y2�Lrs
             r8�_addPagezRL_CorpLogoThin._addPage�s����r��5��8�B��
���B���4��B����A��b��R��R��A��
.�
��2��b��B�r�E�"�R��2��b��B��7�
��U�2�b��e�B�r�E�"�R��U�+�
-���	]�A�
�E�E�(�1�+�5�YZ�[�\�	]r:c
��d}|j}|j}t|j|z|j|z|j
|z�}t
�}t
�}|jt||dd|j|j���|jdz
|j�z}|j|d�|j|ddd|��|j|d|�	�|jd|zd�|j|jdd|�
��|j|jdd|�
��|j|d�|jdd��|j!dd
�|j|�|j|j"|jz|j$|jz�|j!|j&|j(�|S)Nr0r)rrrrr r!r%r/�r�)rr�r�r)rr)rrrr3r��&)rrrr�r�r�rr>r
r�r�r	r�rrr�r�r r!rr)r7r�rrrr��g2s       r8r�zRL_CorpLogoThin.draw�s���
���N�N�	��&�&���y�}�}�R�'�	����(:�9�>�>�"�;L�M���G���G��	���d�Y�I��a�t�w�w�_c�_f�_f�g�h��g�g�a�i�����
#��
����A���
�
�b�Q�!�t�&�
�A��
�
�b�Q�[�
�9�
����2��a��
���t�}�}�q�1�6�}�2�3�
���t�}�}�q�1�;�}�7�8�
����A��
���2�!���
����2��	���b�	�	����
�
�4�7�7�"�4�;�;�t�w�w�#6�7�	������t�v�v���r:)rrN)NN)rNrr)r�r�r�r�r�r�r�r�r�r�r�r�rrrr9rArr	rr�r�r:r8r�r��s��!����"���"��n�-��^�,� ��/�"�M�2�

�H�
�B�	�B�
�E� �I��I���
j�D�	]�r:r�c�4�eZdZdZdddezdezdfd�Zd�Zy)�
ReportLabLogoz:vector reportlab logo centered in a 250x by 150y rectanglerg@g�?c�6�||f|_||f|_||_yr<)�origin�
dimensions�
powered_by)r7�atx�atyr r!r s      r8r9zReportLabLogo.__init__�s���C�j��� �&�/���$��r:c��ddlm}|j�|j\}}|j\}}t�}||c|_|_|j|j�|||d�|j�y)Nr)�	renderPDF)�reportlab.graphicsr$�	saveStaterrrr r!r�rA�restoreState)r7�canvasr$r!r"r r!�logos        r8r�zReportLabLogo.drawsh��0������K�K�	��S��/�/�����}��"'����
�D�K����t�y�y�{�6�#�c�!�4����r:N)r�r�r�r�rr9r�r�r:r8rr�s#��D��!�3�t�8�C��H�QR�%�
r:rc��eZdZdZedidee��dee��dee��dee��dee��dee��dee��d	ee��d
ee��dee	��dee	��d
ee
��dee
��dee
��dee
��dee
��dee
��dee
��dee��dee���Zde
zZde
zZdZdZd�Zd�Zd�Zy)�RL_BusinessCarda�Widget that creates a single business card.
    Uses RL_CorpLogo for the logo.

    For a black border around your card, set self.border to 1.
    To change the details on the card, over-ride the following properties:
    self.name, self.position, self.telephone, self.mobile, self.fax, self.email, self.web
    The office locations are set in self.rh_blurb_top ("London office" etc), and
    self.rh_blurb_bottom ("New York office" etc).
    rr�altStrokeColorrrr!r r�bleed�	cropMarksr�name�position�	telephone�mobile�fax�email�web�rh_blurb_top�rh_blurb_bottomgffffff@g!@r�z,strategic reporting solutions for e-businessc�z�t|_t|_t|_d|_d|_|j|_	|j|_|jdz|_dtz|_d|_d|_d|_d|_d|_d|_d	|_d
|_d|_gd�|_y)
Nrg������@皙�����?r/zJoe CoolzFreelance Demonstratorz
020 8545 7271�-z
020 8544 1311zinfo@reportlab.comzwww.reportlab.com)zLondon office:zReportLab Europe LtdzMedia Housez3 Palmerston Road�	WimbledonzLondon SW19 1PGzUnited Kingdom)rrrrrr,rrr�r!r�r rrr-r.rr/r0r1r2r3r4r5r6r6s r8r9zRL_BusinessCard.__init__2s���&��� ���#����������g�g����W�W��
��:�:�d�?����r�6��
���������	�.��
�&������ ���'��
�$���'��r:c�h�t|j|j�}|j|�|Sr<r=r?s  r8rAzRL_BusinessCard.demoNrBr:c�
�|j}|j}t�}|jt	dd|j|j|j
|j���|jt	d|j|j
z
|j|j|j|j
���t�}t�}dtz|_dtz|_|j�|j|�|j|�|j|j|j|jdzzz
|j|j|jdzzz
��|jt|j
dz|j|j|jdzzz
d|jzzd	|jd
d|j���gd
�}|j|j |j"|j$|j&g}|j)�|j)�t+t-|�dd�D]�}|jt|j
|j
dzz|j
dz|dz
dzzd|jdd||dz
���|jt|j
|j
dzz|j
z|j
dz|dz
dzzd|jdd||dz
�����|j|j
z
|j
dzz
dz}	|j.}
t+dt-|
�dz�D]S}|jt|j|j
dzz
|	|dzz
d|jdd|
|dz
����U|jt|j
|j
dzz|	dz
d|jdd|j0���|	dz
}|jt|j
|j
dzz|dz
d|jdd|j2���|j4r8|jt	dddt6|j|j���|j|j8|j:�|S)Nr)rrrrr r!g�?gffffff�?�*)rrg@g�8x��?�zHelvetica-BoldOblique�start)rrr�rr��
textAnchorr)zTel:zMobile:zFax:zEmail:zWeb:r�r/g@��	Helveticar%�endr3g(@�)rrrr>r
rr!r rrr�r�rr,�
_strapliner1r2r3r4r5�reverse�rangerr6r/r0rrrr)r7rrr�r�rl�leftText�leftDetailsr��ty�	rightText�ty1s            r8r�zRL_BusinessCard.drawSsb���N�N�	��&�&���G��	���d�q�a�&*�n�n�(,���"&�"2�"2�#'�;�;�	0�	1�
	
���d�q�d�k�k�$�*:�*:�:�&*�n�n�(,���"&�*�*�#'�#3�#3�	5�	6��W���=����G��	��r�6���
���	�
���r�
�	���b�	�
���D�J�J����$�*�*�R�-� 8�9��K�K�2�9�9�d�k�k�"�n�#=�>�	�	A�	
���f��)�)�#�-�"&�+�+����D�K�K��N�1K�"L�PW�Y[�Yb�Yb�Ob�!c�'(�(,�(;�(;�'>�)0�#'�?�?�
4�	5�?���^�^�D�K�K�������D�H�H�M�����������s�8�}�Q�r�*�	6�A�
�E�E�&�T�-�-�t�/?�/?��/C�D�!%�!1�!1�#�!5��1��u�
� F�'(�(,�(8�(8�'2�)0�#+�A�a�C�=�
2�
3�
�E�E�&�T�-�-�t�/?�/?��/C�D�T�EU�EU�U�!%�!1�!1�#�!5��1��u�
� F�'(�(,�(8�(8�'2�)0�#.�q��s�#3�
5�
6�	6�"�k�k�$�*�*�*�D�,<�,<�S�,@�A�!�C���#�#�	��q�#�i�.��*�,�	4�A�
�E�E�&�T�Z�Z��)9�)9�#�)=�>� "�Q��K� 0�'(�(,�(8�(8�'2�).�#,�Q�q�S�>�
3�
4�	4�	
���f��)�)�4�+;�+;�C�+?�@� "�2��')�(,�(8�(8�'2�)0�#'�9�9�
.�	/���i��	���f��)�)�4�+;�+;�C�+?�@� #�A��'(�(,�(8�(8�'2�)0�#'�=�=�
2�	3��;�;�
�E�E�$�1�!�(,�,1�&*�j�j�'+�{�{�	4�
5�
	
������t�v�v���r:Nr�)r�r�r�r�r�r�r�r�r�r��isString�isListOfStringsOrNoner�rr�r�rrFr9rAr�r�r:r8r+r+
sk����
� ��/�
�"�=�1�
�&�m�4�
�
��"�	
�

��"�
��h�'�

��X�&�
�#�8�,�
��>�*�
��y�)�
��I�&�
��(�
#�
��h�'�
��x�(�
��H�%�
� 
��"�!
�"�8�$�#
�$
��"�%
�&"�"7�8�'
�(%�%:�;�)
�H�.
�b��B�	�R��B� �I�?�J�'�8�
`r:r+)�pdf�eps�jpg�gif�svgc��t�}d|_d|_t|j|j�}|j	|�d|j
d<|j
d|��t�}d|_d|_t|j|j�}|j	|�d|j
d<|j
d|��t�}tddd�|_	d|_d|_t|j|j�}|j	|�d|j
d<|j
d	|��t�}d
|_d
|_d|_
t|jdz|jdz�}|j	|�d|j
d<|j
d|��y
)z,This function produces a pdf with examples. �r1r/�verbose�corplogo_whiteonblue)�fnRoot�formats�corplogo_blueonwhiter9�corplogo_grayonwhite��2r+N)rr r!r	r>�__dict__�saver�rrr+rrr)r[rIr@s   r8�testrb�sx��
��B��B�H��B�I��������#�A��E�E�"�I��A�J�J�y���F�F�(��F�9�
�	�B��B�H��B�I��������#�A��E�E�"�I��A�J�J�y���F�F�(��F�9�
�	�B���c�3�'�B�L��B�H��B�I��������#�A��E�E�"�I��A�J�J�y���F�F�(��F�9�
�	�B�	�B�D�	�B�D��B�I�������B�I�I�b�L�)�A��E�E�"�I��A�J�J�y���F�F�#�G�F�4r:�__main__N) �__version__r��reportlab.lib.unitsrr�reportlab.lib.validators�reportlab.lib.attrmap�reportlab.lib.formattersr�reportlab.graphics.shapesrrr	r
rr�reportlab.graphics.widgetbaser
�reportlab.lib.colorsrrrr�reportlab.pdfbase.pdfmetricsrrr�r�rr+rbr�r�r:r8�<module>rms���
��	A��(�&�#�5�X�X�0�C�C�4�M�&�M�^'�+�'�L�f�L�\��$i�f�i�X1�(5�T�Z���F�r:

Zerion Mini Shell 1.0