| Server IP : 217.160.0.135 / Your IP : 216.73.216.73 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 : |
�
�n�b3; � � � d Z dZddlmZ ddlT ddlmZ ddlmZ ddl m
Z
ddlmZm
Z
mZmZ e
j fd �Z G d
� de� � ZddlmZ G d
� de� � Zde
j di fd�Zde
j di fd�Zdd�Zedk rC ed�� � ddlZ eej � � dk rej d ZndZ eed�� � dS dS )z3.3.0z�Render Drawing objects within others PDFs or standalone
Usage::
import renderpdf
renderpdf.draw(drawing, canvas, x, y)
Execute the script to see some test drawings.
changed
� )�BytesIO)�*)�Canvas)�stringWidth)� rl_config)�Renderer�
getStateDelta�renderScaledDrawing�STATE_DEFAULTSc �p � t � � }|� t | � � ||||�� � dS )z
As it says��showBoundaryN)�_PDFRenderer�drawr
)�drawing�canvas�x�yr �Rs �>/usr/lib/python3/dist-packages/reportlab/graphics/renderPDF.pyr r s6 � ����A��F�F��w�'�'���A�L�F�Q�Q�Q�Q�Q� c �l � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� ZdS )r z�This draws onto a PDF document. It needs to be a class
rather than a function, as some PDF-specific state tracking is
needed outside of the state info in the SVG model.c �"