§
    ¥”j6  ã                   ó¢   — d dl mZ d dlmZmZ d dlmZ ddlmZm	Z	 ddgZ
 ed¬	¦  «         G d
„ de	¦  «        ¦   «         Z G d„ de¦  «        ZdS )é    )Ú	dataclass)ÚcontentÚlayout)ÚBasePdfFileWriteré   )Ú	BaseStampÚBaseStampStyleÚStaticContentStampÚStaticStampStyleT)Úfrozenc                   ód   — e Zd ZU dZdZeed<   	 e	 d	 dd„¦   «         Zde	de
j        d	edd
fd„ZdS )r   za
    Stamp style that does not include any custom parts; it only renders
    the background.
    g      ð?Úbackground_opacityr   Úreturnc                 óF   — t          ddt          j        ||¬¦  «        i|¤ŽS )aÖ  
        Create a :class:`StaticStampStyle` from a page from an external PDF
        document. This is a convenience wrapper around
        :class:`~content.ImportedPdfContent`.

        The remaining keyword arguments are passed to
        :class:`StaticStampStyle`'s init method.

        :param file_name:
            File name of the external PDF document.
        :param page_ix:
            Page index to import. The default is ``0``, i.e. the first page.
        Ú
background)Úpage_ix© )r   r   ÚImportedPdfPage)ÚclsÚ	file_namer   Úkwargss       úc/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/pyhanko/stamp/static.pyÚfrom_pdf_filezStaticStampStyle.from_pdf_file   s;   € õ"  ð 
ð 
ÝÔ.¨yÀ'ÐJÑJÔJð
àð
ð 
ð 	
ó    ÚwriterÚboxÚtext_paramsr
   c                 ó&   — t          || |¬¦  «        S )N)r   Ústyler   )r
   )Úselfr   r   r   s       r   Úcreate_stampzStaticStampStyle.create_stamp.   s   € õ "¨°tÀÐEÑEÔEÐEr   N)r   )r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚfloatÚ__annotations__Úclassmethodr   r   r   ÚBoxConstraintsÚdictr!   r   r   r   r   r      sª   € € € € € € ðð ð
 !$Ð˜Ð#Ð#Ñ#ðð
 à !ð
à	ð
ð 
ð 
ñ „[ð
ð*Fà!ðFð Ô"ðFð ð	Fð
 
ðFð Fð Fð Fð Fð Fr   c                   ó@   ‡ — e Zd ZdZdededej        fˆ fd„Zd„ Z	ˆ xZ
S )r
   z.Class representing stamps with static content.r   r   r   c                 ó˜   •— |r|j         r|j        st          j        d¦  «        ‚t	          ¦   «                              |||¬¦  «         d S )Nz9StaticContentStamp requires a predetermined bounding box.)r   r   r   )Úheight_definedÚwidth_definedr   ÚLayoutErrorÚsuperÚ__init__)r    r   r   r   Ú	__class__s       €r   r1   zStaticContentStamp.__init__:   s`   ø€ ð ð 	˜Ô*ð 	¨sÔ/@ð 	ÝÔ$ØKñô ð õ 	‰Œ×Ò˜S¨°fÐÑ=Ô=Ð=Ð=Ð=r   c                 ó   — g S )Nr   )r    s    r   Ú_render_inner_contentz(StaticContentStamp._render_inner_contentF   s   € Øˆ	r   )r"   r#   r$   r%   r   r   r   r)   r1   r4   Ú__classcell__)r2   s   @r   r
   r
   7   sq   ø€ € € € € Ø8Ð8ð
>à!ð
>ð  ð
>ð Ô"ð	
>ð 
>ð 
>ð 
>ð 
>ð 
>ðð ð ð ð ð ð r   N)Údataclassesr   Úpyhanko.pdf_utilsr   r   Úpyhanko.pdf_utils.writerr   Úbaser   r	   Ú__all__r   r
   r   r   r   ú<module>r;      så   ðØ !Ð !Ð !Ð !Ð !Ð !à -Ð -Ð -Ð -Ð -Ð -Ð -Ð -Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6à +Ð +Ð +Ð +Ð +Ð +Ð +Ð +àÐ!3Ð
4€ð €�$ÐÑÔð(Fð (Fð (Fð (Fð (F�~ñ (Fô (Fñ Ôð(FðVð ð ð ð ˜ñ ô ð ð ð r   