%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/reportlab/graphics/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/reportlab/graphics/__pycache__/renderPM.cpython-312.pyc |
� ��d�t � � � d Z dZddl� ddlmZmZ ddlmZmZ ddl m Z ddlmZ dd l mZmZ dd lZdd lZddlmZmZ ddlmZmZmZmZ d'd �Z eej8 � Zd� Zd� Zej@ fd�Z!ddlm"Z" G d� de"� Z#d� Z$d� Z%d� Z&d'd�Z'dZ( G d� d� Z)ddd ej@ ej8 fd�Z*ddd ej@ ej8 fd�Z+ddd ej@ ej8 fd�Z,d ddd ej@ ej8 fd!�Z-d ddd ej@ ej8 fd"�Z.e-Z/d(d#�Z0e1d$k( r e0d%�&� y y # e$ r d ZY ��w xY w))z3.3.0a$ Render drawing objects in common bitmap formats Usage:: from reportlab.graphics import renderPM renderPM.drawToFile(drawing,filename,fmt='GIF',configPIL={....}) Other functions let you create a PM drawing as string or into a PM buffer. Execute the script to see some test drawings.� )�*)� getStateDelta�renderScaledDrawing)�getFont� unicode2T1)� isUnicode)� rl_config� )�setFont� RenderPMErrorN)�BytesIO�StringIO)�sin�cos�pi�ceilc �h � | st j } | dk( r dd l}|S d| j � v r dd l}|S t d| � �� �# t $ r)} dd l}n# t $ r t d� �w xY wY d }~|S d }~ww xY w# t $ r-} dd l}n# t $ r t d| � d�� �w xY wY d }~|S d }~ww xY w)N� _renderPMr z�Cannot import desired renderPM backend, {backend}. No module named _rl_renderPM it may be badly or not installed! You may need to install development tools or seek advice at the users list see https://pairlist2.pair.net/mailman/listinfo/reportlab-users�cairoz'cannot import desired renderPM backend z^ Seek advice at the users list see https://pairlist2.pair.net/mailman/listinfo/reportlab-userszInvalid renderPM backend, )r �renderPMBackend�_rl_renderPM�ImportError� rlPyCairor �lower)�backend�M�errMsgs �=/usr/lib/python3/dist-packages/reportlab/graphics/renderPM.py� _getPMBackendr s � ��i�7�7�G���� @�$�. �H� �G�M�M�O� #� @�!� �H� �8�� �B�C�C��+ � @� @�%��� @�#� %?� @� @� @�� &�( �H��- @�� � @� @�(��� @�#�(O�PW�y� Y<� %?� @� @� @�� )� �H�� @�sR �A �A; � A8�A�A3�A*�*A3�3A8�; B1�B � B,� B#�#B,�,B1c �<