%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/reportlab/pdfbase/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/reportlab/pdfbase/__pycache__/pdfform.cpython-312.pyc |
� ��dX= � �� � d Z ddlmZmZmZmZmZ ddlmZ d�d�Z d�d�Z d�d�Zd�d�Zd� Z d � Zdd lmZmZ d� Z G d� d e� Zdddgd ed� dddgdddgd edddgg� dgZd� Zd� ZdgZddd gdd!d"gddgZd#d$d%d&d'd(d)d*d+d,d-d.d/�Zdd0d1gddgZd2gZd3� Zdd4d5gddd gdd6d7gdd8gZd9� Zdd:lm Z e e� e� d�d;�Z!g d<�d=g�d>�d?g�d@�dAg�d>�dBg�d>�dCg�dD�dEg�d�dF�dGg�d�dH�dIg�d�dJ�dKg�d>�dLg�d>�dMg�d>�dNg�dO�dPg�d�dQ�dEg�d�dR�dSg�d�d�Z" d�dT�Z#g dU�dV�d=g�d>�d?g�d@�dAg�d>�dBg�d>�dCg�dW�dX�dYg�d�dZ�d[�d\�d]�d^�d_�d`�da�db�db�db�dc�dd�da�de�de�de�dc�df�dg�dhg�d�dH�dig�d�dj�dk�dKg�d>�dLg�d>�dMg�d>�dNg�dl�dm�dn�do�d7g�d�dp�dq�dr�dYg�d�d�Z$d�ds�Z%g dt�du�d_�dv�dwg�d�dx�dy�d_�dz�d{�d|�d}g�d�d~�dg�d�d��d�d��d��d~�d�g�d�d��df�d��d�g�d�d�� ed�� �d�d��d�g�d�d��d��d��d��d��d��d��d_�d��d�� ed�� �d�� ed�� �dx�d�d��dig�d�dj�dk�dKg�d>�dLg�d>�dMg�d>�dNg�d��d�dm�d��d��d7g�d�d��d��d��d�g�d�d��Z&d�d��Z'd�d��Z(y�)�a� Support for Acrobat Forms in ReportLab documents This module is somewhat experimental at this time. Includes basic support for textfields, select fields (drop down lists), and check buttons. The public interface consists of functions at the moment. At some later date these operations may be made into canvas methods. (comments?) The ...Absolute(...) functions position the fields with respect to the absolute canvas coordinate space -- that is, they do not respect any coordinate transforms in effect for the canvas. The ...Relative(...) functions position the ONLY THE LOWER LEFT CORNER of the field using the coordinate transform in effect for the canvas. THIS WILL ONLY WORK CORRECTLY FOR TRANSLATED COORDINATES -- THE SHAPE, SIZE, FONTSIZE, AND ORIENTATION OF THE FIELD WILL NOT BE EFFECTED BY SCALING, ROTATION, SKEWING OR OTHER NON-TRANSLATION COORDINATE TRANSFORMS. Please note that all field names (titles) in a given document must be unique. Textfields and select fields only support the "base 14" canvas fonts at this time. See individual function docstrings below for more information. The function test1(...) generates a simple test file. THIS CONTRIBUTION WAS COMMISSIONED BY REPORTLAB USERS WHO WISH TO REMAIN ANONYMOUS. � )� PDFString� PDFStream� PDFDictionary�PDFName� PDFObject)� obj_R_G_Bc �V � t | � } | j | |||||z ||z |||� S )a Place a text field on the current page with name title at ABSOLUTE position (x,y) with dimensions (width, height), using value as the default value and maxlen as the maximum permissible length. If multiline is set make it a multiline field. )�getForm� textField) �canvas�title�x�y�width�height�value�maxlen� multiline�theforms �;/usr/lib/python3/dist-packages/reportlab/pdfbase/pdfform.py�textFieldAbsoluter - s7 � � �f�o�G����V�U�A�q�!�E�'�1�V�8�U�F�T]�^�^� c �R � | j ||� \ } } t | || | |||||� S �z\same as textFieldAbsolute except the x and y are relative to the canvas coordinate transform)�absolutePositionr )r r �xR�yRr r r r r �xA�yAs r �textFieldRelativer 7 s4 � ��&�&�r�"�-�H�R���V�U�B��E�6�5�&�R[�\�\r c �H � t | � }|j | ||||||�� S )z�Place a check button field on the current page with name title and default value value (one of "Yes" or "Off") at ABSOLUTE position (x,y). �r r )r �buttonField)r r r r r r r r s r �buttonFieldAbsoluter$ <