+
     i$  c                  s"   ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIHtHt ^RI	H
t
HtHtHtHtHt R R ltR R ltRR	 R
 llt]
P&                  ! R]4       ]
P(                  ! R]4       ]
P*                  ! RR4       ]
P,                  ! RR4       R# )    )annotationsN)IOAny)Image	ImageFileImageSequence	PdfParser__version__featuresc               s(    V ^8  d   QhRRRRRRRR/# )	   imImage.Imagefp	IO[bytes]filenamestr | bytesreturnNone Zformat   "9/usr/lib64/python3.14/site-packages/PIL/PdfImagePlugin.py__annotate__r   +   s(     + ++ +9 + + +    c                s"    \        WVR R7       R# )T)save_allN)_save)r   r   r   s   &&&r   	_save_allr   +   s    	"(T*r   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r
   r   r   r   r   existing_pdfzPdfParser.PdfParser
image_refsz!list[PdfParser.IndirectReference]r   z'tuple[PdfParser.IndirectReference, str]r   r   r   r   r   r   3   sA     B BBB &B 2	B
 -Br   c                s2   R pR pV P                   w  rgR^/pV P                  R8X  dw   \        P                  ! R4      '       d<   Rp	^VR&   \        P
                  ! \        P                  ! RR3RRRVR	V/4      .4      pMR
p	\        P                  ! R4      VR&   Rp
EMV P                  R8X  d    R
p	\        P                  ! R4      VR&   Rp
EMV P                  R8X  d   Rp	Rp
^VR&   EMhV P                  R8X  d   Rp	V P                  4       p\        P                  ! R4      \        P                  ! R4      \        V4      ^,          ^,
          \        P                  ! V4      .VR&   Rp
RV P                  9   d?   V P                  R4      P                  R4      p/ Vn        \        WW#4      ^ ,          pWR&   MV P                  R8X  d   R
p	\        P                  ! R4      VR&   Rp
MhV P                  R8X  d   Rp	Rp
^VR&   MMV P                  R8X  d#   R
p	\        P                  ! R4      VR&   Rp
. R4OpMRV P                   2p\!        V4      h\"        P$                  ! 4       pV	R8X  dL   \&        P(                  ! W\&        P*                  ! R R5V P                   ,           ^ V P                  4      .4       MV	R8X  d9   V P-                  VR!R"\.        P0                  ! V^,          4      V,          R#7       M`V	R
8X  d    \2        P4                  R$,          ! WV4       M:V	R8X  d#   VR \2        P4                  R%,          ! WV4       MR&V	 R'2p\!        V4      hVP7                  4       pV	R8X  d6   VR(,          p\        P
                  ! \        P                  ! V	4      .4      pM\        P                  ! V	4      pVP9                  ^ 4      pVP:                  ! V3R)VR*\        P                  ! R+4      R,\        P                  ! R-4      R.VR/VR0VR1VR2V/VB  W3# )6NZBitsPerComponentZ1ZlibtiffZCCITTFaxDecodeZKZBlackIs1TZColumnsZRowsZ	DCTDecodeZ
DeviceGrayZ
ColorSpaceZImageBZLZLAZ	JPXDecodeZSMaskInDataPZASCIIHexDecodeZIndexedZ	DeviceRGBZImageItransparencyZAZSMaskZRGBZImageCZRGBAZCMYKZ
DeviceCMYKzcannot save mode ZhexZTIFFZgroup4)ZcompressionZ
strip_sizeZJPEGZJPEG2000zunsupported PDF filter (Z):i   NNstreamZTypeXObjectZSubtyper   ZWidthZHeightZFilterZDecodeZDecodeParms)   r    r$   r    r$   r    r$   r    )r    r    )Zsizemoder	   Zcheckr   ZPdfArrayPdfDictPdfNameZ
getpaletteZlenZ	PdfBinaryinfoZconvertZ
getchannelencoderinfo_write_imageZ
ValueErrorioZBytesIOr   r   Z_TileZsavemathZceilr   ZSAVEZgetvalueZpop	write_obj)r   r   r   r   ZparamsdecodewidthheightZdict_objZdecode_filterprocsetZpaletteZsmask	image_refZmsgZopr!   Zfilters   &&&&              r   r*   r*   3   s    FF
 GGME 2A6H	ww#~>>)$$,M+,H'(''%%&%u"F		F (M!*!2!2<!@	C#!*!2!2<!@	D#"#	C(--/ i(k*LA!(	"
 RWW$JJt$//4E "E$UlOPQRI )W	E	#!*!2!2;!?	F	#"#	F	#!*!2!2<!@)!"''+o
 
B((8H!RWW!U VW	*	*
 yy+f4 	 	
 
+	%

628,	+	%'(

:rx0(q9o[[]F((##Y%6%6}%E$FG""=1q!I y) !!'*	
       r   c          
     r   )r
   r   r   r   r   r   r   r   Zboolr   r   r   r   r   r   r   r      s;     s ss"s.9sEIs	sr   c                s
   V P                   P                  R R4      p\        V\        4      '       d   VP	                  4       MTpV'       d   \
        P
                  ! WRR7      pM\
        P
                  ! WRR7      pV P                   P                  R4      pV'       d   V^ ,          pV^,          p	MV P                   P                  RR4      ;rRV'       d   R	MB\        P                  P                  \        P                  P                  V4      4      ^ ,          R
R	RR	RR	RR	RR	RV'       d   R	M\        P                  ! 4       RV'       d   R	M\        P                  ! 4       /p
V
P                  4        Fm  w  rWP                   9   d   V P                   P                  V4      MTpV'       g   K<  WP                  V^ ,          P                  4       VR,          ,           &   Ko  	  V P                  4        VP!                  4        VP#                  4        VP%                  R\&         R24       V .pV'       dV   V P                   P                  R. 4      pV F3  pV P                   P)                  4       Vn         VP+                  V4       K5  	  ^ p. p. p. pV F  p ^pV'       d   \-        V R^4      pVV,          p\/        V4       F  pVP+                  VP1                  ^ 4      4       V P2                  R8X  d2   RV P                  9   d!   VP+                  VP1                  ^ 4      4       VP+                  VP1                  ^ 4      4       VP+                  VP1                  ^ 4      4       VP4                  P+                  VR,          4       K  	  K  	  VP7                  4        ^ pV EFJ  pV'       d   \8        P:                  ! V4      MV.pV EF  p \=        WVV4      w  ppVP?                  VV,          \
        P@                  ! \
        PB                  ! R4      \
        PB                  ! V4      .\
        P@                  ! VR7      R7      ^ ^ V PD                  R,          V,          V PF                  R,          V	,          .VV,          R7       RV PD                  R,          V,          V PF                  R,          V	,          3,          pVPI                  VV,          VR7       V^,          pEK!  	  EKM  	  VPK                  4        \M        VR4      '       d   VPO                  4        VPQ                  4        R	# ) appendFzr+b)Zfr   r%   zw+bdpiZ
resolutiong      R@ZtitleNZauthorZsubjectZkeywordsZcreatorZproducerZcreationDateZmodDate:r$   NNzcreated by Pillow z PDF driverappend_imagesZn_framesr   r    PDF)Zimage)ZProcSetr"   )Z	ResourcesZMediaBoxZContentss   q %f 0 0 %f 0 0 cm /image Do Q
)r!   flushr#   ))r)   ZgetZ
isinstanceZbytesr.   r   osZpathZsplitextZbasenametimeZgmtimeZitemsr(   ZupperZloadZstart_writingZwrite_headerZwrite_commentr   Zcopyr3   ZgetattrZrangeZnext_object_idr%   ZpagesZwrite_catalogr   ZIteratorr*   Z
write_pager&   r'   r/   r0   r-   Zwrite_xref_and_trailerZhasattrr7   Zclose)r   r   r   r   Zis_appendingZfilename_strr   r4   Zx_resolutionZy_resolutionr(   ZkZdefaultZvZimsr5   Z	append_imZnumber_of_pagesr   Z	page_refsZcontents_refsZim_number_of_pagesZiZpage_numberZim_sequenceZim_pagesr2   r1   Zpage_contentss   &&&&                         r   r   r      s>    >>%%h6L(28U(C(C8??$L **RUS **RUS
..

U
#C
1v1v&(nn&8&8t&LL 	 Dbgg&6&6rww7G7G7Q&RST&U$4D4D$++-<4T[[]D jjl
%&..%8BNNq!g167adjjlQrU23 # GGI !3K=LM $C**?B?&I$&NN$7$7$9I!JJy! ' OJIM!(Z!;--)*Al99!<=ww#~.BGG";!!,"="=a"@A\88;<  !<!<Q!?@%%im4 +    K3;M"";/+ 	 B!-bL*!UIw
 ##+&#++&..u5y7H7H7QR%--I>
 HHtOl2II$|3	 '{3 $ $ @4,.		D </C M
 ""=#=m"T1K? 	 N '')r7

r   r6   z.pdfzapplication/pdf)F)Z
__future__r   r+   r,   r8   r9   Ztypingr   r   Z r   r   r   r   r   r	   r   r*   r   Zregister_saveZregister_save_allZregister_extensionZregister_mimer   r   r   <module>r:      su   , # 	  	   O O+BJst   E5 !   y )    '   E, -r   