%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/hplip/fax/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/hplip/fax/__pycache__/coverpages.cpython-312.pyc

�

=	f�X���ddlZejde�ejde�ddlmZddlmZmZm	Z	ddl
�ddlmZm
Z
ddlmZmZddlmZmZmZdd	lmZdd
lmZmZddlmZddlmZmZejd
e�ejd
e�edk(rddl Z e jBjEd�ddl#�ddl$m%Z%dZ&dZ'dZ(d�Z)e&ddddddddddddf
d�Z*e&ddddddddddddf
d�Z+e&ddddddddddddf
d�Z,e&ddddddddddddf
d�Z-e*dfe+dfe,dfe-dfd �Z.edk(re-e&dd!d"d#d$d%d&d'd(d)dd*�+�
yy),�N�ignore)�	Paragraph)�Preformatted�Image�
HRFlowable)�*)�SimpleDocTemplate�Spacer)�Table�
TableStyle)�letter�legal�A4)�inch)�ParagraphStyle�getSampleStyleSheet)�colors)�	localtime�strftime�default�__main__z..)�utilsr
r�a4c�f�|jdd�jdd�jdd�S)N�&z&amp;�>z&gt;�<z&lt;)�replace)�ss �"/usr/share/hplip/fax/coverpages.py�escaper!5s-���9�9�S�'�"�*�*�3��7�?�?��V�L�L���Fc
���t�}
g}tdddd��}|jtd|��|jt	dt
��tddd	�
�}td|�}tt
|dd�|�}td
|�}tt
|dd�|�}td|�}tt
|dd�|�}td|�}tt
|dd�|�}td|�}tt
|dd�|�}td|�}tt
|dd�|�}td|�}tt
|	dd�|�}td|�}ttdt��|�}td|�} td|z|�}!||||g||||g||||g||| |!gg}"tddg�}#|jtdd���|jt|"|#���|
�rtgd��}$|jtdd���|jt	ddt
z��|rKdj|
dd j�dd!�}
td"|�d#gtt
|
�|�d#gg}"n(td"|�d#gtt
|
dd �|�d#gg}"|jtdd���|jt|"|$���|jtdd���|tk(rt }%n|t"k(rt$}%nt&}%|�t)j*�\}&}'n|}'t-|'|%�$�}(|(j/|�|'S)%N�titlezhelvetica-bold�H)�name�parent�fontName�fontSize�FAXr#�normal�Times-Roman��r(r*r+�To:�@�Fax:�Phone:�From:�Email:�
Regarding:��Date:�%a, %d %b %Y %H:%M:%S (%Z)�Total Pages:�%d��ALIGN)r#r#����r@�RIGHT��VALIGN)rrr?�TOP�100%�black��width�color��style)r=rB)�SPAN)���r#r?��?�
�� zComments/Notes:r$��pagesize)rr�appendrr
rr!rrrrr�join�
splitlinesr�PAGE_SIZE_LETTERr
�PAGE_SIZE_LEGALrrr�make_temp_filer	�build�)�	page_size�total_pages�recipient_name�recipient_phone�
recipient_fax�sender_name�sender_phone�
sender_fax�sender_email�	regarding�message�preserve_formatting�outputr�story�ps�recipient_name_label�recipient_name_text�recipient_fax_label�recipient_fax_text�recipient_phone_label�recipient_phone_text�sender_name_label�sender_name_text�sender_phone_label�sender_phone_text�sender_email_label�sender_email_text�regarding_label�regarding_text�date_time_label�date_time_text�total_pages_label�total_pages_text�data�
LIST_STYLE�	MSG_STYLE�pgsz�f_fd�f�docs)                                         r �createStandardCoverPager�9s���	��A��E�
�W�#�!1�"$�
�B�
�L�L��5�"�%�&�	�L�L���4��!�	�X�!.�"$�	
%�B�%�U�B�/��#�F�>�#�2�+>�$?��D��#�F�B�/��"�6�-���*<�#=�r�B��%�h��3��$�V�O�C�R�,@�%A�2�F��!�'�2�.�� ���C�R�(8�!9�2�>��"�8�R�0��!�&��c�r�):�";�R�@��"�8�R�0��!�&��c�r�):�";�R�@����b�1�O��v�i���o�6��;�N����,�O��x�(D�i�k�R�TV�W�N�!�.�"�5�� ���!3�R�8��
!�#6�8I�K[�\�
 �"4�6H�J[�\�
�n�.@�BS�T�
�n�.?�AQ�R�T�D�
�@�@�	��J�
�L�L��&��8�9�	�L�L��t�:�.�/��� "�#�	�	���Z�f�G�<�=�
���V�A�s�4�x�(�)���i�i����� 9� 9� ;�C�R� @�A�G��0�"�5�r�:�!�&��/�2�6��;�>�D��0�"�5�r�:��v�g�e�t�n�5�r�:�B�?�B�D�	���Z�f�G�<�=�
���U�4�y�1�2�
���Z�f�G�<�=��$�$���	�o�	%�����
�~��&�&�(���a���
�A��
-�C��I�I�e���Hr"c
��t�}
g}|jttjjtjdd���|jtdt��|jtdd���tddd	�
�}td|�}tt|dd�|�}td
|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|	dd�|�}td|�}ttdt��|�}td|�} td|z|�}!||g||gddg||g||g||gddg||g| |!g||gg
}"t!ddg�}#|jt#|"|#���|jtdd���|
r�t!ddg�}$|jtddtz��|rJdj|
ddj%�dd�}
|jt't|
�|��n$|jtt|
�|��|t(k(rt*}%n|t,k(rt.}%nt0}%|�t3j4�\}&}'n|}'t7|'|%��}(|(j9|�|'S) N�otherzconfidential_title.pngr#rErFrGr-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r$r=rBrJrNrOrPrQrR)rrTr�os�pathrU�prop�	image_dirr
rrrrr!rrrrrVrrWr
rXrrrrYr	rZr[s)                                         r �createConfidentialCoverPager��s?��	��A��E�	�L�L��r�w�w�|�|�D�N�N�G�=U�V�W�X�	�L�L���4��!�	�L�L��&��8�9�	�X�!.�"$�	
%�B�%�U�B�/��#�F�>�#�2�+>�$?��D��#�F�B�/��"�6�-���*<�#=�r�B��%�h��3��$�V�O�C�R�,@�%A�2�F��!�'�2�.�� ���C�R�(8�!9�2�>��"�8�R�0��!�&��c�r�):�";�R�@��"�8�R�0��!�&��c�r�):�";�R�@����b�1�O��v�i���o�6��;�N����,�O��x�(D�i�k�R�TV�W�N�!�.�"�5�� ���!3�R�8��
!�#6�7�
 �"4�5�
��H�
� 0�1�
�!2�3�
�!2�3�
��H�
�n�-�
� 0�1�
�n�-�	0�D��@�@�	��J�
�L�L��t�:�.�/�	�L�L��&��8�9���"D�!D�	 "�#�	�	���V�A�s�4�x�(�)���i�i����� 9� 9� ;�C�R� @�A�G��L�L��f�W�o�r�:�;��L�L��6�'�?�B�7�8��$�$���	�o�	%�����
�~��&�&�(���a���
�A��
-�C��I�I�e���Hr"c
�f�t�}
g}ttjj	t
jdd�dd��}d|_|j|�|jtdd�	��td
dd�
�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|	dd�|�}td|�}ttdt��|�} td|�}!td|z|�}"||g||gddg||g||g||gddg|| g|!|"g||gg
}#tddg�}$|jt!|#|$���|jtdd�	��|
r�tddg�}%|jt#ddt$z��|rJd j	|
dd!j'�dd"�}
|jt)t|
�|��n$|jtt|
�|��|t*k(rt,}&n|t.k(rt0}&nt2}&|�t5j6�\}'}(n|}(t9|(|&�#�})|)j;|�|(S)$Nr�zgeneric_title.png���rH�height�LEFTrErFrGr-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r$r=rBrJr#rNrOrPrQrR)rrr�r�rUr�r��hAlignrTrrrr!rrrrr
rrVrrWr
rXrrrrYr	rZ�*r\r]r^r_r`rarbrcrdrerfrgrhrri�irjrkrlrmrnrorprqrrrsrtrurvrwrxryrzr{r|r}r~rr�r�r�r�s*                                          r �createGenericCoverPager�5s>��	��A��E�
�b�g�g�l�l�4�>�>�7�4G�H�PS�\_�`�A��A�H�	�L�L��O�	�L�L��&��8�9�	�X�!.�"$�	
%�B�%�U�B�/��#�F�>�#�2�+>�$?��D��#�F�B�/��"�6�-���*<�#=�r�B��%�h��3��$�V�O�C�R�,@�%A�2�F��!�'�2�.�� ���C�R�(8�!9�2�>��"�8�R�0��!�&��c�r�):�";�R�@��"�8�R�0��!�&��c�r�):�";�R�@����b�1�O��v�i���o�6��;�N����,�O��x�(D�i�k�R�TV�W�N�!�.�"�5�� ���!3�R�8��
!�#6�7�
 �"4�5�
��H�
� 0�1�
�!2�3�
�!2�3�
��H�
�n�-�
� 0�1�
�n�-�	0�D��@�@�	��J�
�L�L��t�:�.�/�	�L�L��&��8�9���"D�!D�	 "�#�	�	���V�A�s�4�x�(�)���i�i����� 9� 9� ;�C�R� @�A�G��L�L��f�W�o�r�:�;��L�L��6�'�?�B�7�8��$�$���	�o�	%�����
�~��&�&�(���a���
�A��
-�C��I�I�e���Hr"c
��t�}
g}ttjj	t
jdd�dd��}d|_|j|�|jtdt��|jtdd	�
��tddd
��}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|dd�|�}td|�}tt|	dd�|�}td|�}ttdt!��|�} td|�}!td|z|�}"||g||gddg||g||g||gddg|| g|!|"g||gg
}#t#ddg�}$|jt%|#|$���|jtdd	�
��|
r�t#ddg�}%|jtddtz��|rJd j	|
dd!j'�dd"�}
|jt)t|
�|��n$|jtt|
�|��|t*k(rt,}&n|t.k(rt0}&nt2}&|�t5j6�\}'}(n|}(t9|(|&�#�})|)j;|�|(S)$Nr�zurgent_title.pngi��\r�r�r#rErFrGr-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r$r=rBrJrNrOrPrQrR)rrr�r�rUr�r�r�rTr
rrrrr!rrrrrVrrWr
rXrrrrYr	rZr�s*                                          r �createUrgentCoverPager��sO��	��A��E�
�b�g�g�l�l�4�>�>�7�4F�G�s�[]�^�A��A�H�	�L�L��O�	�L�L���4��!�	�L�L��&��8�9�	�X�!.�"$�	
%�B�%�U�B�/��#�F�>�#�2�+>�$?��D��#�F�B�/��"�6�-���*<�#=�r�B��%�h��3��$�V�O�C�R�,@�%A�2�F��!�'�2�.�� ���C�R�(8�!9�2�>��"�8�R�0��!�&��c�r�):�";�R�@��"�8�R�0��!�&��c�r�):�";�R�@����b�1�O��v�i���o�6��;�N����,�O��x�(D�i�k�R�TV�W�N�!�.�"�5�� ���!3�R�8��
!�#6�7�
 �"4�5�
��H�
� 0�1�
�!2�3�
�!2�3�
��H�
�n�-�
� 0�1�
�n�-�	0�D��@�@�	��J�
�L�L��t�:�.�/�	�L�L��&��8�9���"D�!D�	 "�#�	�	���V�A�s�4�x�(�)���i�i����� 9� 9� ;�C�R� @�A�G��L�L��f�W�o�r�:�;��L�L��6�'�?�B�7�8��$�$���	�o�	%�����
�~��&�&�(���a���
�A��
-�C��I�I�e���Hr"zstandard_coverpage.pngzconfidential_coverpage.pngzgeneric_coverpage.pngzurgent_coverpage.png)�basic�confidential�generic�urgent�Trexz+1 234-567-8912z+1 432 123 1234�Donz+1 234 432 1234z+1 567 876 5123 ztest@hplip.sf.netzSome sorta stuffu7Some HP printers require proprietary software technologies to allow full access to printer features and performance. These technologies cannot be open sourced. Because of this, HP uses a binary plug-in for these printers that work in conjunction with our Linux Open Source Printing Software to improve the printing experience for HP’s Linux Printing Customers. This binary plug-in requires the user to read and agree to a license agreement at the time of driver installation.  There is a single plug-in file (for each HPLIP release) for all plug-in enabled devices.z
output.pdf)
r\r]r^r_r`rarbrcrdrerfrgrh)/�warnings�simplefilter�DeprecationWarning�
SyntaxWarning�reportlab.platypus.paragraphr�reportlab.platypus.flowablesrrr�reportlab.platypus.doctemplate�reportlab.platypusr	r
�reportlab.platypus.tablesrr�reportlab.lib.pagesizesr
rr�reportlab.lib.unitsr�reportlab.lib.stylesrr�
reportlab.libr�timerr�__name__�sysr�rT�base.g�baserrWrX�PAGE_SIZE_A4r!r�r�r�r��
COVERPAGES�r"r �<module>r�s���*�����h� 2�3�����h�
�.�2�H�H�,�8�7�5�5�$�D� �%�����i�!3�4�����i��/��
����H�H�O�O�D����������M�'7�()�+-�,.�*,�(*�)+�')�)+�&(�$&�05�#'�{
�|+;�()�+-�,.�*,�(*�)+�')�)+�&(�$&�05�#'�{
�|&6�()�+-�,.�*,�(*�)+�')�)+�&(�$&�05�#'�~
�B%5�()�+-�,.�*,�(*�)+�')�)+�&(�$&�05�#'�|
�@1�2J�K� ;�=Y�Z�1�3J�K�/�1G�H��
��
���$4�,-�/5�0A�.?�,1�->�+=�-@�*<�)f	�49�'3�5�r"

Zerion Mini Shell 1.0