%PDF- %PDF-
Direktori : /lib/python3/dist-packages/reportlab/pdfbase/__pycache__/ |
Current File : //lib/python3/dist-packages/reportlab/pdfbase/__pycache__/pdfpattern.cpython-312.pyc |
� ��d� � �X � d Z ddlmZmZmZ ddlmZ d� Z G d� de� Z G d� d� Z y ) zHhelper for importing pdf structures into a ReportLab generated document � )�format� PDFObject� pdfdocEnc)�strTypesc �0 � t t t � rt nt f}|t t fz }| D ]a }t ||� r�t |� dk7 rt dt |� z � �t |d t � r�It dt |d � z � � y )N� zTsequence elts must be strings/bytes/PDFPatternIfs or singletons containing strings: r zCSingletons must contain strings/bytes or PDFObject instances only: )� isinstancer �tupler �PDFPatternIf�len� ValueError�ascii)�pattern_sequence�allowedTypes�xs �>/usr/lib/python3/dist-packages/reportlab/pdfbase/pdfpattern.py�_patternSequenceCheckr s� � �)�(�E�:�8���L��9�\�":�:�L� � t���!�L�)��1�v�q�y� �!w�x}�~� yA� "A� B� B��a��d�8�,� �!f�gl�mn�op�mq�gr�!r�s�s�t� c �4 � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z y) � PDFPatternr c �6 � t |� || _ || _ y)a Description of a kind of PDF object using a pattern. Pattern sequence should contain strings, singletons of form [string] or PDFPatternIf objects. Strings are literal strings to be used in the object. Singletons are names of keyword arguments to include. PDFpatternIf objects allow some conditionality. Keyword arguments can be non-instances which are substituted directly in string conversion, or they can be object instances in which case they should be pdfdoc.* style objects with a x.format(doc) method. Keyword arguments may be set on initialization or subsequently using __setitem__, before format. "constant object" instances can also be inserted in the patterns. N)r �pattern� arguments)�selfr �keywordargss r �__init__zPDFPattern.__init__ s � � �.�/�'���$��r c �"