+
    f0i                         ^ RI t ^ RIt^ RIHtHt ^ RIHtHtHt ^ RI	H
t
 ^ RIHtHtHt ^ RIHtHt ^ RIHt ^ RIHtHtHtHt ^ R	IHt ^ R
IHtHt ]P<                  ! ]4      t ]! R4      t!]! R4      t" ! R R4      t#R# )    N)	ContainerIterator)AnyBinaryIOClassVar)settings)PDFDocumentPDFNoPageLabelsPDFTextExtractionNotAllowed)PDFObjectNotFoundPDFValueError)	PDFParser)
dict_value	int_value
list_valueresolve1)LIT)Rect
parse_rectPagePagesc                      a  ] tR t^t o RtV 3R lR ltV 3R lR lt0 Rmt]V 3R lR l4       t	]RV 3R	 lR
 ll4       t
V 3R lR ltV 3R lR ltV 3R lR ltV 3R ltRtV tR# )PDFPagea2  An object that holds the information about a page.

A PDFPage object is merely a convenience class that has a set
of keys and values, which describe the properties of a page
and point to its contents.

Attributes
----------
  doc: a PDFDocument object.
  pageid: any Python object that can uniquely identify the page.
  attrs: a dictionary of page attributes.
  contents: a list of PDFStream objects that represents the page content.
  lastmod: the last modified time of the page.
  resources: a dictionary of resources used by the page.
  mediabox: the physical size of the page.
  cropbox: the crop rectangle of the page.
  rotate: the page rotation (in degree).
  annots: the page annotations.
  beads: a chain that represents natural reading order.
  label: the page's label (typically, the logical page number).

c          
      D   < V ^8  d   QhRS[ RS[RS[RS[R,          RR/# )   docpageidattrslabelNreturn)r	   objectstr)format__classdict__s   "V/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/pdfminer/pdfpage.py__annotate__PDFPage.__annotate__1   sA     ) )) ) 	)
 Tz) 
)    c                   Wn         W n        \        V4      V n        W@n        \        V P                  P                  R4      4      V n        \        V P                  P                  R/ 4      4      V n        V P                  V P                  P                  R4      4      V n
        V P                  V P                  P                  R4      V P                  4      V n        V P                  V P                  P                  R4      4      V n        \        V P                  P                  R^ 4      4      R,           R,          V n        V P                  P                  R4      V n        V P                  P                  R	4      V n        R
# )zInitialize a page object.

doc: a PDFDocument object.
pageid: any Python object that can uniquely identify the page.
attrs: a dictionary of page attributes.
label: page label string.
LastModified	ResourcesMediaBoxCropBoxContentsRotateih  AnnotsBN)r   r   r   r   r   r   getlastmod	resources_parse_mediaboxmediabox_parse_cropboxcropbox_parse_contentscontentsr   rotateannotsbeads)selfr   r   r   r   s   &&&&&r%   __init__PDFPage.__init__1   s    &



~ >?/7JJNN;+0
 ,,TZZ^^J-GH**4::>>)+DdmmT,,TZZ^^J-GH !!<=CsJjjnnX.ZZ^^C(
r(   c                    < V ^8  d   QhRS[ /# )r   r    )r"   )r#   r$   s   "r%   r&   r'   P   s     V V# Vr(   c                @    R V P                   : RV P                  : R2# )z<PDFPage: Resources=z, MediaBox=>)r4   r6   )r>   s   &r%   __repr__PDFPage.__repr__P   s"    %dnn%7{4==BSSTUUr(   c                4   < V ^8  d   QhRS[ RS[R,          /# )r   documentr    r   )r	   r   )r#   r$   s   "r%   r&   r'   [   s      ; ;K ;HY4G ;r(   c           
   #    a aa	"   RR V V	V3R lllo	 SP                  4       pRpRSP                  9   dG   S	! SP                  R,          SP                  4      pV F  w  rVS ! SWV\        V4      4      x  RpK  	  V'       g   SP                   Ft  pVP                  4        F]  p SP                  V4      p\        V\        4      '       d3   VP                  R4      \        J d   S ! SWX\        V4      4      x  K[  K]  K_  	  Kv  	  R # R #   \         d    \        P                  ! R 4      p ELi ; i  \         d     K  i ; i5i)Nc                
   V ^8  d   QhR\         R\        \        \         3,          R\        \         ,          R,          R\        \
        \        \        \         \        \         \         3,          3,          3,          ,          /# )r   objparentvisitedNr    )r   dictr"   setr   tupleint)r#   s   "r%   r&   *PDFPage.create_pages.<locals>.__annotate__\   sa     $	5 $	5$	5cN$	5 X_$	5 eCc4S>&9!::;<	$	5r(   c              3     <"   \        V \        4      '       d,   T p\        SP                  V4      4      P	                  4       pM%V P
                  p\        V 4      P	                  4       pVf   \        4       pW29   d   R # VP                  V4       VP                  4        F$  w  rVVS	P                  9   g   K  WT9  g   K   WdV&   K&  	  VP                  R4      pVf(   \        P                  '       g   VP                  R4      pV\        J dQ   RV9   dJ   \        P                  RVR,          4       \!        VR,          4       F  pS
! WV4       R j  xL
  K  	  R # V\"        J d   \        P                  RV4       W43x  R # R #  L35i)NTypetypeKidszPages: Kids=%rzPage: %r)
isinstancerP   r   getobjcopyobjidrN   additemsINHERITABLE_ATTRSr2   r   STRICTLITERAL_PAGESlogdebugr   LITERAL_PAGE)rJ   rK   rL   	object_idobject_propertieskvobject_typechildclsdepth_first_searchrG   s   &&&      r%   ri   0PDFPage.create_pages.<locals>.depth_first_search\   sM    
 #s##	$.xy/I$J$O$O$Q!  II	$.sO$8$8$:! %#KK	"---!2L+,a( ' ,//7K"8???/33F;m+:K0K		*,=f,EF'(9&(ABE1%GTTT C ,		*&78 44 - Us%   B1F
9F
2F
4A F
F4F
Fr   TrS   N)get_page_labelsr
   	itertoolsrepeatcatalognextxrefs
get_objidsrW   rV   rM   r2   ra   r   )
rh   rG   page_labelspagesobjectsrY   treexrefrJ   ri   s
   ff       @r%   create_pagesPDFPage.create_pagesZ   s#    $	5 $	5L	1080H0H0JK h&&&()9)9')BHDTDTUG&(Ek1BCC  '  !__.E&ooe4%c400SWWV_5T"%hD<M"NN 6U0 / '   	1#**40K	1" - sS   ED A E"E(AD5=E!D2.E1D22E5E EEENc                p   < V ^8  d   QhRS[ RS[S[,          R,          RS[RS[RS[RS[RS[R	,          /# )
r   fppagenosNmaxpagespasswordcachingcheck_extractabler    r   )r   r   rP   r"   boolr   )r#   r$   s   "r%   r&   r'      s_     " "" 3$&" 	"
 " "  " 
)	"r(   c              #  n  "   \        V4      p\        WtVR 7      pVP                  '       g6   V'       d   RV: 2p	\        V	4      hRV: R2p
\        P                  V
4       \        V P                  V4      4       F3  w  rV'       d	   W9  d   K  Vx  V'       g   K#  W;^,           8:  g   K2   R# 	  R# 5i))r~   r   z Text extraction is not allowed: zThe PDF z contains a metadata field indicating that it should not allow text extraction. Ignoring this field and proceeding. Use the check_extractable if you want to raise an error in this caseN)r   r	   is_extractabler   r_   warning	enumeraterx   )rh   r{   r|   r}   r~   r   r   parserr   	error_msgwarning_msgpagenopages   &&&&&&&      r%   	get_pagesPDFPage.get_pages   s      2&WE !!! >rfE	1)<< rf %A A  K(%c&6&6s&;<LFF1JxH
2 =s   2B5A%B5
B5.B5c                &   < V ^8  d   QhRS[ RS[/# r   valuer    r   r   )r#   r$   s   "r%   r&   r'      s      S T r(   c                    RpVf   \         P                  R4       V#  \        R \        V4       4       4      #   \         d    \         P                  R4       Tu # i ; i)        zHMediaBox missing from /Page (and not inherited), defaulting to US Letterc              3   8   "   T F  p\        V4      x  K  	  R # 5irk   r   .0vals   & r%   	<genexpr>*PDFPage._parse_mediabox.<locals>.<genexpr>        Ghsmm   z2Invalid MediaBox in /Page, defaulting to US Letter)r   r   g      @g     @)r_   r   r   r   r   )r>   r   	us_letters   && r%   r5   PDFPage._parse_mediabox   sa    ,	=KK* 	GxGGG 	KKLM	s   : "AAc                ,   < V ^8  d   QhRS[ RS[RS[/# )r   r   r6   r    r   )r#   r$   s   "r%   r&   r'      s"     
 
C 
4 
D 
r(   c                    Vf   V#  \        R \        V4       4       4      #   \         d    \        P	                  R4       Tu # i ; i)Nc              3   8   "   T F  p\        V4      x  K  	  R # 5irk   r   r   s   & r%   r   )PDFPage._parse_cropbox.<locals>.<genexpr>   r   r   z0Invalid CropBox in /Page, defaulting to MediaBox)r   r   r   r_   r   )r>   r   r6   s   &&&r%   r7   PDFPage._parse_cropbox   sG    =O	GxGGG 	KKJKO	s   # "AAc                6   < V ^8  d   QhRS[ RS[S[ ,          /# r   )r   list)r#   r$   s   "r%   r&   r'      s      S T#Y r(   c                Z    . pVe%   \        V4      p\        V\        4      '       g   V.pV# rk   )r   rV   r   )r>   r   r:   s   && r%   r9   PDFPage._parse_contents   s/     Hh--$:r(   c                F   < V ^8  d   Qh/ S[ S[S[,          ,          ;R&   # )r   r\   )r   rN   r"   )r#   r$   s   "r%   r&   r'      s     t  C) u r(   )r<   r   r=   r:   r8   r   r   r3   r6   r   r4   r;   >   r/   r-   r,   r+   )Nr    TF)__name__
__module____qualname____firstlineno____doc__r?   rD   r\   classmethodrx   r   r5   r7   r9   __annotate_func____static_attributes____classdictcell__)r$   s   @r%   r   r      s}     .) )>V V- ; ;z " " "H "
 
 C  r(   r   )$rm   loggingcollections.abcr   r   typingr   r   r   pdfminerr   pdfminer.pdfdocumentr	   r
   r   pdfminer.pdfexceptionsr   r   pdfminer.pdfparserr   pdfminer.pdftypesr   r   r   r   pdfminer.psparserr   pdfminer.utilsr   r   	getLoggerr   r_   ra   r^   r    r(   r%   <module>r      sf      / * *  
 D ( I I ! +! 6{GG Gr(   