← Back
Editing: renderPDF.cpython-311.pyc
� �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 �"