
    HAi                     R   S r SrSrSSKJrJrJrJr  SSKJ	r	  SSK
Jr  SS	KJrJrJrJrJrJrJrJrJrJrJr  SS
KJrJrJrJrJrJrJrJ r J!r!J"r"  SSK#J$r$  SSK%J&r&  SSK'J(r(J)r)J*r*J+r+  SSK,J-r-  SSK.J/r/  SSKJ0r0J1r1J2r2J3r3J4r4  SSK5J6r6  \&Rn                  " 5       r8 " S S5      r9/ SQr:g)zHImplementation of generic PDF objects (dictionary, number, string, ...).zMathieu Fenniakzbiziqe@mathieu.fenniak.net    )ListOptionalTupleUnion   deprecation_with_replacement)OutlineFontFlag   )BooleanObjectByteStringObjectFloatObjectIndirectObject
NameObject
NullObjectNumberObject	PdfObjectTextStringObjectencode_pdfdocencodingis_null_or_none)
ArrayObjectContentStreamDecodedStreamObjectDestinationDictionaryObjectEncodedStreamObjectFieldStreamObject
TreeObjectread_object)EmbeddedFile)Fit)DirectReferenceLinkNamedReferenceLinkReferenceLinkextract_links)OutlineItemRectangleObject)create_string_objectdecode_pdfdocencoding
hex_to_rgbread_hex_string_from_streamread_string_from_stream)ViewerPreferencesc                   .   \ rS rSrSrSSKJr  \  S1S\\\	\
\
\
\
4   4   S\S	\S
\SS4
S jj5       r\       S2S\S\\\	\
\
\
\
4   4   S\S\S\S\S\S\\   S\\   SS4S jj5       r\SSSS.S\\\	\
\
\
\
4   4   S
\S\\   S	\SS4
S jj5       r\  S3S\	\
\
4   S\	\
\
4   S\\\	\
\
\
\
4   4   S\S\\   SS4S jj5       r\S\\	\
\
4      SS4S j5       r\ S4S\\\	\
\
\
\
4   4   S\\   SS4S  jj5       r\S!SS".S\\\	\
\
\
\
4   4   S#\S$\S%\SS4
S& jj5       r\ S4S\\\	\
\
\
\
4   4   S\\   SS4S' jj5       r\S\\	\
\
4      SS4S( j5       rS)S*KJr  \SSS\4S\\\	\
\
\
\
4   4   S+\\   S,\\   S-\\   S.\SS4S/ jj5       rS0rg)5AnnotationBuilderP   z
The AnnotationBuilder is deprecated.

Instead, use the annotation classes in pypdf.annotations.

See `adding PDF annotations <../user/adding-pdf-annotations.html>`_ for
its usage combined with PdfWriter.
r   r(   Fr   recttextopenflagsreturnNc                     [        SSS5        g )NzAnnotationBuilder.textzpypdf.annotations.Text5.0.0r   )r3   r4   r5   r6   s       R/var/www/html/land-ocr/venv/lib/python3.13/site-packages/pypdf/generic/__init__.pyr4   AnnotationBuilder.text\   s     	%$&>	
    fontbolditalic	font_size
font_colorborder_colorbackground_colorc	                     [        SSS5        g )NzAnnotationBuilder.free_textzpypdf.annotations.FreeTextr9   r   )	r4   r3   r=   r>   r?   r@   rA   rB   rC   s	            r:   	free_textAnnotationBuilder.free_textg   s     	%)+G	
r<   )r6   parentr5   rG   c                     [        SSS5        g )NzAnnotationBuilder.popupzpypdf.annotations.Popupr9   r   )r3   r6   rG   r5   s       r:   popupAnnotationBuilder.popupw   s     	%%'@'	
r<   p1p2	title_barc                     [        SSS5        g )NzAnnotationBuilder.linezpypdf.annotations.Liner9   r   )rK   rL   r3   r4   rM   s        r:   lineAnnotationBuilder.line        	%$&>	
r<   verticesc                     [        SSS5        g )NzAnnotationBuilder.polylinezpypdf.annotations.PolyLiner9   r   rR   s    r:   polylineAnnotationBuilder.polyline   s     	%(*F	
r<   interiour_colorc                     [        SSS5        g )NzAnnotationBuilder.rectanglezpypdf.annotations.Rectangler9   r   r3   rW   s     r:   	rectangleAnnotationBuilder.rectangle   s    
 	%)+H'	
r<   ff0000)highlight_colorprintingquad_pointsr]   r^   c                     [        SSS5        g )NzAnnotationBuilder.highlightzpypdf.annotations.Highlightr9   r   )r3   r_   r]   r^   s       r:   	highlightAnnotationBuilder.highlight   s     	%)+H'	
r<   c                     [        SSS5        g )NzAnnotationBuilder.ellipsezpypdf.annotations.Ellipser9   r   rY   s     r:   ellipseAnnotationBuilder.ellipse   s    
 	%')Dg	
r<   c                     [        SSS5        g )NzAnnotationBuilder.polygonzpypdf.annotations.Polygonr9   r   rT   s    r:   polygonAnnotationBuilder.polygon   s    $')Dg	
r<   r   )DEFAULT_FITborderurltarget_page_indexfitc                     [        SSS5        g )NzAnnotationBuilder.linkzpypdf.annotations.Linkr9   r   )r3   rj   rk   rl   rm   s        r:   linkAnnotationBuilder.link   rQ   r<    )Fr   )	HelveticaFF14pt000000rt   ffffff) N)N) __name__
__module____qualname____firstlineno____doc__generic._rectangler)   staticmethodr   r   floatstrboolintr4   r   rE   r   rI   rO   r   rU   rZ   r   ra   rd   rg   _fitri   r"   ro   __static_attributes__rq   r<   r:   r1   r1   P   s    5 	
OU5%+E%FFG

 
 	

 

 
   "&.*2

OU5%+E%FFG
 
 	

 
 
 
 sm
 #3-
 

 
  -1	
OU5%+E%FFG	
 	
 )*		

 	
 
	
 	
 
 #'	
%,	
%,	
 OU5%+E%FFG	
 		

 C=	
 
	
 	
 
uUE\*+
	
 
  *.
OU5%+E%FFG
!#
 

 
 
  (	
OU5%+E%FFG	
 !	
 		

 	
 
	
 	
  *.
OU5%+E%FFG
!#
 

 
 
$uUE\23 
 
 

 " )-!+/	
OU5%+E%FFG	
%	
 c]	
 $C=		

 	
 
	
 	
r<   r1   )&PAGE_FITr1   r   r   r   r   r   r   r   r#   r!   r   r   r"   r   r   r   r$   r   r   r
   r'   r   r)   r%   r   r   r   r/   r*   r+   r   r&   r,   r   r-   r    r.   N);r{   
__author____author_email__typingr   r   r   r   _utilsr	   	constantsr
   _baser   r   r   r   r   r   r   r   r   r   r   _data_structuresr   r   r   r   r   r   r   r   r   r    _filesr!   r   r"   _linkr#   r$   r%   r&   _outliner'   
_rectangler)   r*   r+   r,   r-   r.   _viewerprefr/   rm   r   r1   __all__rq   r<   r:   <module>r      s   8 O
/  / / (      !  X X ! '  +779w
 w
t)r<   