← Back
Editing: pdfform.cpython-311.pyc
� }G�bX= � � � d Z ddlmZmZmZmZmZ ddlmZ d�d�Z d�d�Z d�d �Zd�d�Zd� Z d � ZddlmZmZ d� Z G d� de� � Zdddgd ed� � dddgdddgd edddgg� � dgZd� Zd � Zd!gZd"d#d$gdd%d&gddgZd'd(d)d*d+d,d-d.d/d0d1d2d3�Zd"d4d5gddgZd6gZd7� Zd"d8d9gdd#d$gdd:d;gdd<gZd=� Zdd>lm Z e e� � e� � d�dB�Z!g dC�dDg�dE�dFg�dG�dHg�dE�dIg�dE�dJg�dK�dLg�d�dM�dNg�d�dO�dPg�d�dQ�dRg�dE�dSg�dE�dTg�dE�dUg�dV�dWg�d�dX�dLg�d�dY�dZg�d�d�Z" d�d[�Z#g d\�d]�dDg�dE�dFg�dG�dHg�dE�dIg�dE�dJg�d^�d_�d`g�d�da�db�dc�dd�de�df�dg�dh�di�di�di�dj�dk�dh�dl�dl�dl�dj�dm�dn�dog�d�dO�dpg�d�dq�dr�dRg�dE�dSg�dE�dTg�dE�dUg�ds�dt�du�dv�d;g�d�dw�dx�dy�d`g�d�d�Z$d�dz�Z%g d{�d|�df�d}�d~g�d�d�d��df�d��d��d��d�g�d�d��d�g�d�d��d�d��d��d��d�g�d�d��dm�d��d�g�d�d�� ed�� � �d�d��d�g�d�d��d��d��d��d��d��d��df�d��d�� ed�� � �d�� ed�� � �d�d�d��dpg�d�dq�dr�dRg�dE�dSg�dE�dTg�dE�dUg�d��d�dt�d��d��d;g�d�d��d��d��d�g�d�d��Z&d�d��Z'd�d��Z(d�S )�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_B� �@B c �f � t | � � } | � | |||||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 - s<