| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 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 : /usr/lib/python3/dist-packages/reportlab/pdfbase/__pycache__/ |
Upload File : |
�
}G�b� � �f � d Z ddlmZmZmZ ddlmZ d� Z G d� de� � Z G d� d� � Z d S )
zHhelper for importing pdf structures into a ReportLab generated document
� )�format� PDFObject� pdfdocEnc)�strTypesc � � t t t � � rt nt f}|t t fz }| D ]�}t ||� � srt |� � dk rt
dt |� � z � � �t |d t � � s%t
dt |d � � z � � ���d S )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�:�:�K�8�8���L��9�\�":�:�L�
� t� t���!�L�)�)� t��1�v�v�q�y�y� �!w�x}�~� yA� yA� "A� B� B� B��a��d�8�,�,�
t� �!f�gl�mn�op�mq�gr�gr�!r�s�s�s��t� t� c �6 � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z dS ) �
PDFPatternr c �@ � t |� � || _ || _ dS )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 � � || j |<