Ë
    F<k	  ã                   óÌ   — d Z ddlmZ ddlmZ ddlmZ ddlmZm	Z	m
Z
mZmZ ddlmZmZ  G d„ d	e«      Z G d
„ dee«      Z G d„ de«      Z G d„ dee«      Z G d„ dee«      Zy)z#Helpers for working with PDF types.é    )Úabstractmethod)ÚSequence)ÚPath)ÚIOÚAnyÚLiteralÚOptionalÚProtocolé   )ÚStrByteTypeÚ
StreamTypec            	       ó”   — e Zd ZU eed<   	 	 ddededeedf   ee   z  dz  defd„Z	d	ededefd
„Z
ded    fd„Zdefd„Zdeddfd„Zy)ÚPdfObjectProtocolÚindirect_referenceÚpdf_destÚforce_duplicateÚignore_fields.NÚreturnc                  ó   — y ©N© )Úselfr   r   r   s       úS/var/www/tapir-food/flask_app/venv/lib/python3.12/site-packages/pypdf/_protocols.pyÚclonezPdfObjectProtocol.clone   s   € ð 	ó    r   c                  ó   — y r   r   )r   r   r   s      r   Ú_reference_clonez"PdfObjectProtocol._reference_clone   ó   € Ør   c                  ó   — y r   r   ©r   s    r   Ú
get_objectzPdfObjectProtocol.get_object   r   r   c                  ó   — y r   r   r    s    r   Ú
hash_valuezPdfObjectProtocol.hash_value   r   r   Ústreamc                  ó   — y r   r   ©r   r$   s     r   Úwrite_to_streamz!PdfObjectProtocol.write_to_stream   r   r   )Fr   )Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__ÚboolÚtupleÚstrÚlistr   r   r	   r!   Úbytesr#   r   r'   r   r   r   r   r      sœ   … ØÓð
 !&Ø<>ñ	àðð ðð ˜S #˜X‘¨¨c©Ñ2°TÑ9ð	ð
 
óð cð °Sð ¸Só ð˜HÐ%8Ñ9ó ð˜Eó ð jð °Tô r   r   c                   ó   — e Zd Zy)ÚXmpInformationProtocolN)r(   r)   r*   r   r   r   r2   r2   #   s   „ Ør   r2   c                   ó€   — e Zd Zedefd„«       Zedee   fd„«       Zede	fd„«       Z
dede	dz  fd„Zedefd„«       Zy)	ÚPdfCommonDocProtocolr   c                  ó   — y r   r   r    s    r   Ú
pdf_headerzPdfCommonDocProtocol.pdf_header(   ó   € àr   c                  ó   — y r   r   r    s    r   ÚpageszPdfCommonDocProtocol.pages,   r7   r   c                  ó   — y r   r   r    s    r   Úroot_objectz PdfCommonDocProtocol.root_object0   r7   r   r   Nc                  ó   — y r   r   )r   r   s     r   r!   zPdfCommonDocProtocol.get_object4   r   r   c                  ó   — y r   r   r    s    r   ÚstrictzPdfCommonDocProtocol.strict7   r7   r   )r(   r)   r*   Úpropertyr.   r6   r   r   r9   r   r;   r!   r,   r>   r   r   r   r4   r4   '   sŠ   „ Øð˜Cò ó ðð ð�x ‘}ò ó ðð ðÐ.ò ó ðð¨Sð Ð5FÈÑ5Mó ð ð˜ò ó ñr   r4   c                   ój   — e Zd Zeedeeeeef   f   fd„«       «       Zeedee	ef   fd„«       «       Z
y)ÚPdfReaderProtocolr   c                  ó   — y r   r   r    s    r   ÚxrefzPdfReaderProtocol.xref=   ó   € ð 	r   c                  ó   — y r   r   r    s    r   ÚtrailerzPdfReaderProtocol.trailerB   rD   r   N)r(   r)   r*   r?   r   ÚdictÚintr   rC   r.   rF   r   r   r   rA   rA   <   s`   „ ØØð�d˜3  S¨# X¡Ð.Ñ/ò ó ó ðð Øð˜˜c 3˜h™ò ó ó ñr   rA   c                   ó¬   — e Zd ZU ee   ed<   eeeeed   z  ef   f   ed<   e	ed<   edz  ed<   e
deez  dee	ee   f   fd	„«       Ze
d
edefd„«       Zy)ÚPdfWriterProtocolÚ_objectsÚ	PreventGCÚ_id_translatedÚincrementalNÚ_readerr$   r   c                  ó   — y r   r   r&   s     r   ÚwritezPdfWriterProtocol.writeR   r7   r   Úobjc                  ó   — y r   r   )r   rR   s     r   Ú_add_objectzPdfWriterProtocol._add_objectV   r7   r   )r(   r)   r*   r/   r   r+   rG   rH   r   r,   r   r   r   r-   r   rQ   rT   r   r   r   rJ   rJ   H   s–   … Ø�3‰iÓð ˜˜d 3¨°Ñ)=Ñ#=¸sÐ#BÑCÐCÑDÓDàÓà�4‰ZÓàð˜D ;Ñ.ð °5¸¸rÀ#¹w¸Ñ3Gò ó ðð ð˜sð  sò ó ñr   rJ   N)Ú__doc__Úabcr   Úcollections.abcr   Úpathlibr   Útypingr   r   r   r	   r
   Ú_utilsr   r   r   r2   r4   rA   rJ   r   r   r   ú<module>r[      s_   ðÙ )å Ý $Ý ß 7Õ 7ç +ô˜ô ô0	Ð.°ô 	ô˜8ô ô*	Ð,¨hô 	ôÐ,¨hõ r   