| Server IP : 217.160.0.135 / Your IP : 216.73.216.115 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/graphics/__pycache__/ |
Upload File : |
�
�vIc:q � �4 � d Z dZddlT ddlmZmZ ddlmZmZ ddl m
Z
ddlmZ dd l
mZmZ dd
lZdd
lZddlmZmZ ddlmZmZmZmZ d)d
�Z eej � � 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 ej fd�Z*ddd
ej ej fd�Z+ddd
ej ej fd�Z,d ddd
ej ej fd!�Z-d ddd
ej ej fd"�Z.e-Z/d*d%�Z0e1d&k r e0d'�(� � d
S d
S )+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 � � | st j } | dk r) ddlm} np# t $ r}t d� � �d }~ww xY wd| � � � v r' dd l}n3# t $ r}t d� � �d }~ww xY wt d| � �� � �|S )N� _renderPMr )r z�No module named _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 rlPyCairo
Seek advice at the users list see
https://pairlist2.pair.net/mailman/listinfo/reportlab-userszInvalid renderPM backend, )r �renderPMBackend�reportlab.graphicsr �ImportError�lower� rlPyCairor )�backend�M�errMsgs �=/usr/lib/python3/dist-packages/reportlab/graphics/renderPM.py�
_getPMBackendr s� � ��7�i�7�G����� @�9�9�9�9�9�9�9��� @� @� @�� ?� @� @�
@����� @����
�G�M�M�O�O� #� #� @�!�!�!�!�!��� @� @� @�� ?� @� @�
@����� @����
�B��B�B�C�C�C��Hs( � �
;�6�;�A �
A8�$A3�3A8c �>