%PDF- %PDF-
Direktori : /lib/python3/dist-packages/PIL/__pycache__/ |
Current File : //lib/python3/dist-packages/PIL/__pycache__/PSDraw.cpython-312.pyc |
� ��e� � �D � d dl mZ d dlZddlmZ G d� d� ZdZdZd Zy) � )�annotationsN� )�EpsImagePluginc �F � e Zd ZdZdd�Zdd�Zd� Zd� Zd� Zd� Z d � Z dd �Zy)�PSDrawz{ Sets up printing to the given file. If ``fp`` is omitted, ``sys.stdout.buffer`` or ``sys.stdout`` is assumed. Nc � � |s# t j j }|| _ y || _ y # t $ r t j }Y || _ y w xY w�N)�sys�stdout�buffer�AttributeError�fp)�selfr s �,/usr/lib/python3/dist-packages/PIL/PSDraw.py�__init__zPSDraw.__init__! sI � �� ��Z�Z�&�&�� ���"���� "� ��Z�Z����� �s �. �A�Ac � � | j j d� | j j t � | j j t � | j j d� i | _ y)z=Set up printing of a document. (Write PostScript DSC header.)sD %!PS-Adobe-3.0 save /showpage { } def %%EndComments %%BeginDocument s %%EndProlog N)r �write� EDROFF_PS�VDI_PS�isofont)r �ids r �begin_documentzPSDraw.begin_document) sS � � ��� � � !� � ��� � �i� ���� � �f����� � �&�'���� c � � | j j d� t | j d� r| j j � yy)z-Ends printing. (Write PostScript DSC footer.)s% %%EndDocument restore showpage %%End �flushN)r r �hasattrr )r s r �end_documentzPSDraw.end_document9 s3 � ���� � �A�B��4�7�7�G�$��G�G�M�M�O� %r c �� � t |d� }|| j vr/| j j d||fz � d| j |<