+
    ‰vj‘[  ã                   ó  € Rt ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIH	t
 ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ]P*                  t]P,                  ! ]4      t ! R R ]
P2                  4      tR	 tRR
 lt ! R R4      tR# )ÚPdfPageÚPdfColorSchemeN)ÚPdfiumError)Ú	PdfBitmap)ÚPdfTextPage)Ú	PdfObject)ÚPDFIUM_INFOc                   ó>  a a€ ] tR t^t oRtV 3R lt]R 4       t]R 4       t	R t
R tR tR tR	 tR
 tR!R ltR tR!R ltR tR!R ltR tR!R ltR tR!R ltR tR tR tR tR tR tR"R lt] PB                  3R lt"^^ R#R]#PH                  RR3R lt%R t&Vt'V ;t(# )$r   a@  
Page helper class.

Attributes:
    raw (FPDF_PAGE):
        The underlying PDFium page handle.
    pdf (PdfDocument):
        Reference to the document this page belongs to.
    formenv (PdfFormEnv | None):
        Formenv handle, if the parent pdf had an active formenv at the time of page retrieval. None otherwise.
c                ó|   <€ Wn         W n        W0n        \        SV `  \
        P                  V P                  4       R # ©N)ÚrawÚpdfÚformenvÚsuperÚ__init__r   Ú_close_impl)Úselfr   r   r   Ú	__class__s   &&&&€Ú[/var/www/html/daimler-pipeline/venv/lib/python3.14/site-packages/pypdfium2/_helpers/page.pyr   ÚPdfPage.__init__#   s+   ø€ ØŒØŒØŒÜ‰Ñœ×,Ñ,¨d¯l©lÖ;ó    c                ón   € V'       d   \         P                  ! W4       \         P                  ! V 4       R # r   )Úpdfium_cÚFORM_OnBeforeClosePageÚFPDF_ClosePage)r   r   s   &&r   r   ÚPdfPage._close_impl*   s!   € çÜ×+Ò+¨CÔ9Ü×Ò Ö$r   c                óN   € V P                   f   V P                  # V P                   # r   )r   r   ©r   s   &r   ÚparentÚPdfPage.parent1   s    € ð  Ÿ<™<Ò/ˆt�x‰xÐA°T·\±\ÐAr   c                ó.   € \         P                  ! V 4      # )zH
Returns:
    float: Page width (horizontal size), in PDF canvas units.
)r   ÚFPDF_GetPageWidthFr   s   &r   Ú	get_widthÚPdfPage.get_width7   s   € ô
 ×*Ò*¨4Ó0Ð0r   c                ó.   € \         P                  ! V 4      # )zG
Returns:
    float: Page height (vertical size), in PDF canvas units.
)r   ÚFPDF_GetPageHeightFr   s   &r   Ú
get_heightÚPdfPage.get_height>   s   € ô
 ×+Ò+¨DÓ1Ð1r   c                óB   € V P                  4       V P                  4       3# )zJ
Returns:
    (float, float): Page width and height, in PDF canvas units.
)r"   r&   r   s   &r   Úget_sizeÚPdfPage.get_sizeE   s   € ð
 —‘Ó  $§/¡/Ó"3Ð4Ð4r   c                ó€   € \         P                  ! V 4      pVR8X  d   \        R4      h\        P                  V,          # )z7
Returns:
    int: Clockwise page rotation in degrees.
zFailed to get page rotation.éÿÿÿÿ)r   ÚFPDFPage_GetRotationr   Úpdfium_iÚRotationToDegrees)r   Úraw_rotations   & r   Úget_rotationÚPdfPage.get_rotationO   s9   € ô
  ×4Ò4°TÓ:ˆØ˜2ÔÜÐ<Ó=Ð=Ü×)Ñ)¨,Õ7Ð7r   c                ó^   € \         P                  ! V \        P                  V,          4       R# )zL
Define the absolute, clockwise page rotation (0, 90, 180, or 270 degrees).
N)r   ÚFPDFPage_SetRotationr.   ÚRotationToConst)r   Úrotations   &&r   Úset_rotationÚPdfPage.set_rotationY   s   € ô 	×%Ò% d¬H×,DÑ,DÀXÕ,NÖOr   c                óö   € \        4       \        4       \        4       \        4       3w  rErgV! WWVV4      pV'       g   V'       d   V! 4       # R # VP                  VP                  VP                  VP                  3# r   )Úc_floatÚvalue)	r   Úbox_funcÚfallback_funcÚfallback_okÚleftÚbottomÚrightÚtopÚoks	   &&&&     r   Ú_get_boxÚPdfPage._get_box`   s\   € Ü#*£9¬g«i¼»ÄGÃIÐ#MÑ ˆ�eÙ�d &°Ó5ˆßß'2‘M“OÐ=¸Ð=Ø—
‘
˜FŸL™L¨%¯+©+°s·y±yÐAÐAr   Tc                óF   € V P                  \        P                  R V4      # )a¸  
Returns:
    (float, float, float, float) | None:
    The page MediaBox in PDF canvas units, consisting of four coordinates (usually x0, y0, x1, y1).
    If MediaBox is not defined, returns ANSI A (0, 0, 612, 792) if ``fallback_ok=True``, None otherwise.

.. admonition:: Known issue

    Due to quirks in PDFium, all ``get_*box()`` functions except :meth:`.get_bbox` do not inherit from parent nodes in the page tree (as of PDFium 5418).
c                  ó   € R# )é    )rH   rH   id  i  © rI   r   r   Ú<lambda>Ú&PdfPage.get_mediabox.<locals>.<lambda>t   s   € ÑDTr   )rD   r   ÚFPDFPage_GetMediaBox©r   r>   s   &&r   Úget_mediaboxÚPdfPage.get_mediaboxi   s   € ð �}‰}œX×:Ñ:Ñ<TÐVaÓbÐbr   c                ó6   € \         P                  ! WW#V4       R# )z^
Set the page's MediaBox by passing four :class:`float` coordinates (usually x0, y0, x1, y1).
N)r   ÚFPDFPage_SetMediaBox©r   ÚlÚbÚrÚts   &&&&&r   Úset_mediaboxÚPdfPage.set_mediaboxv   ó   € ô 	×%Ò% d¨q°QÖ7r   c                óX   € V P                  \        P                  V P                  V4      # )zK
Returns:
    The page's CropBox (If not defined, falls back to MediaBox).
)rD   r   ÚFPDFPage_GetCropBoxrN   rM   s   &&r   Úget_cropboxÚPdfPage.get_cropbox|   s#   € ð
 �}‰}œX×9Ñ9¸4×;LÑ;LÈkÓZÐZr   c                ó6   € \         P                  ! WW#V4       R# )z
Set the page's CropBox.
N)r   ÚFPDFPage_SetCropBoxrR   s   &&&&&r   Úset_cropboxÚPdfPage.set_cropboxƒ   ó   € ô 	×$Ò$ T¨a°AÖ6r   c                óX   € V P                  \        P                  V P                  V4      # )zK
Returns:
    The page's BleedBox (If not defined, falls back to CropBox).
)rD   r   ÚFPDFPage_GetBleedBoxr\   rM   s   &&r   Úget_bleedboxÚPdfPage.get_bleedbox‰   s#   € ð
 �}‰}œX×:Ñ:¸D×<LÑ<LÈkÓZÐZr   c                ó6   € \         P                  ! WW#V4       R# )z
Set the page's BleedBox.
N)r   ÚFPDFPage_SetBleedBoxrR   s   &&&&&r   Úset_bleedboxÚPdfPage.set_bleedbox�   rY   r   c                óX   € V P                  \        P                  V P                  V4      # )zJ
Returns:
    The page's TrimBox (If not defined, falls back to CropBox).
)rD   r   ÚFPDFPage_GetTrimBoxr\   rM   s   &&r   Úget_trimboxÚPdfPage.get_trimbox–   s#   € ð
 �}‰}œX×9Ñ9¸4×;KÑ;KÈ[ÓYÐYr   c                ó6   € \         P                  ! WW#V4       R# )z
Set the page's TrimBox.
N)r   ÚFPDFPage_SetTrimBoxrR   s   &&&&&r   Úset_trimboxÚPdfPage.set_trimbox�   rb   r   c                óX   € V P                  \        P                  V P                  V4      # )zI
Returns:
    The page's ArtBox (If not defined, falls back to CropBox).
)rD   r   ÚFPDFPage_GetArtBoxr\   rM   s   &&r   Ú
get_artboxÚPdfPage.get_artbox£   s#   € ð
 �}‰}œX×8Ñ8¸$×:JÑ:JÈKÓXÐXr   c                ó6   € \         P                  ! WW#V4       R# )z
Set the page's ArtBox.
N)r   ÚFPDFPage_SetArtBoxrR   s   &&&&&r   Ú
set_artboxÚPdfPage.set_artboxª   s   € ô 	×#Ò# D¨Q°1Ö5r   c                óÚ   € \         P                  ! 4       p\         P                  ! W4      pV'       g   \        R4      hVP                  VP
                  VP                  VP                  3# )zb
Returns:
    The bounding box of the page (the intersection between its media box and crop box).
z Failed to get page bounding box.)r   ÚFS_RECTFÚFPDF_GetPageBoundingBoxr   r?   r@   rA   rB   )r   ÚrectrC   s   &  r   Úget_bboxÚPdfPage.get_bbox±   sP   € ô
 × Ò Ó"ˆÜ×-Ò-¨dÓ9ˆßÜÐ@ÓAÐAØ—	‘	˜4Ÿ;™;¨¯
©
°D·H±HÐ=Ð=r   c                ó�   € \         P                  ! V 4      pV'       g   \        R4      h\        W4      pV P	                  V4       V# )zA
Returns:
    PdfTextPage: A new text page handle for this page.
zFailed to load text page.)r   ÚFPDFText_LoadPager   r   Ú_add_kid)r   Úraw_textpageÚtextpages   &  r   Úget_textpageÚPdfPage.get_textpageÀ   s>   € ô
  ×1Ò1°$Ó7ˆßÜÐ9Ó:Ð:Ü˜|Ó2ˆØ�‰�hÔØˆr   c                óx  € VP                   '       d   \        R4      hVP                  '       d&   VP                  V P                  Jd   \        R4      h\        P                  ! W4      pV'       g!   \
        P                  R8¼  d   \        R4      hVP                  4        Wn         V P                  Vn        R# )an  
Insert a pageobject into the page.

The pageobject must not belong to a page yet. If it belongs to a PDF, the target page must be part of that PDF.

Position and form are defined by the object's matrix.
If it is the identity matrix, the object will appear as-is on the bottom left corner of the page.

Parameters:
    pageobj (PdfObject): The pageobject to insert.
zAThe pageobject you attempted to insert already belongs to a page.zBThe pageobject you attempted to insert belongs to a different PDF.i�  zFailed to insert object.N)	ÚpageÚ
ValueErrorr   r   ÚFPDFPage_InsertObjectr   Úbuildr   Ú_detach_finalizer©r   ÚpageobjrC   s   && r   Ú
insert_objÚPdfPage.insert_objÍ   s…   € ð �<�<ˆ<ÜÐ`ÓaÐaØ�;�;ˆ;˜GŸK™K¨t¯x©xÓ7ÜÐaÓbÐbä×+Ò+¨DÓ:ˆß”k×'Ñ'¨4Ô/ÜÐ8Ó9Ð9Ø×!Ñ!Ô#ØŒØ—h‘hˆŽr   c                ó€  € VP                   V Jd   \        R4      hVP                  ^ 8”  dB   VP                  f   Q h\        P
                  ! VP                  V4      p^ RuVn        Vn        M&VP                  e   Q h\        P                  ! W4      pV'       g   \        R4      hRVn         VP                  4        R# )aÓ  
Remove a pageobject from the page.
As of PDFium 5692, detached pageobjects may be only re-inserted into existing pages of the same document.
If the pageobject is not re-inserted into a page, its ``close()`` method may be called.

Note:
    If the object's :attr:`~.PdfObject.type` is :data:`FPDF_PAGEOBJ_TEXT`, any :class:`.PdfTextPage` handles to the page should be closed before removing the object.

Parameters:
    pageobj (PdfObject): The pageobject to remove.
z@The pageobject you attempted to remove is not part of this page.NzFailed to remove pageobject.)	r‰   rŠ   ÚlevelÚ	containerr   ÚFPDFFormObj_RemoveObjectÚFPDFPage_RemoveObjectr   Ú_attach_finalizerrŽ   s   && r   Ú
remove_objÚPdfPage.remove_objç   s§   € ð �<‰<˜tÓ#ÜÐ_Ó`Ð`à�=‰=˜1ÔØ×$Ñ$Ò0Ð0Ð0Ü×2Ò2°7×3DÑ3DÀgÓNˆBØ/0°$Ð,ˆGŒM˜7Õ,à×$Ñ$Ò,Ð,Ð,Ü×/Ò/°Ó>ˆBçÜÐ<Ó=Ð=àˆŒØ×!Ñ!Ö#r   c                óX   € \         P                  ! V 4      pV'       g   \        R4      hR# )zÊ
Generate page content to apply additions, removals or modifications of pageobjects.

If page content was changed, this function should be called once before saving the document or re-loading the page.
z Failed to generate page content.N)r   ÚFPDFPage_GenerateContentr   )r   rC   s   & r   Úgen_contentÚPdfPage.gen_content  s(   € ô ×.Ò.¨tÓ4ˆßÜÐ@ÓAÐAñ r   Nc           
   #  ó–  "  € V'       d$   \         P                  p\         P                  pTpME\         P                  p\         P                  pT pV'       d   VP
                  V Jd   \        R4      hV! V4      p	V	^ 8  d   \        R4      h\        V	4       F©  p
V! WŠ4      pV'       g   \        R4      h\        W°V P                  W4VR7      pV'       d   VP                  V9   d   Vx € VP                  \         P                  8X  g   Ku  WB^,
          8  g   K„  V P                  VVVV^,           VR7       Rj  x€L
  K«  	  R#  L
5i)a@  
Iterate through the pageobjects on this page.

Parameters:
    filter (list[int] | None):
        An optional list of pageobject types to filter (:attr:`FPDF_PAGEOBJ_*`).
        Any objects whose type is not contained will be skipped.
        If None or empty, all objects will be provided, regardless of their type.
    max_depth (int):
        Maximum recursion depth to consider when descending into Form XObjects.
    textpage (PdfTextPage | None):
        Text page to pass through to any :class:`.PdfTextObj` instances.

Yields:
    :class:`.PdfObject`: A pageobject.
z0The given textpage does not belong to this page.z$Failed to get number of pageobjects.zFailed to get pageobject.)r‰   r   r”   r“   r…   )ÚfilterÚ	max_depthÚformr“   r…   N)r   ÚFPDFFormObj_CountObjectsÚFPDFFormObj_GetObjectÚFPDFPage_CountObjectsÚFPDFPage_GetObjectr‰   rŠ   r   Úranger   r   ÚtypeÚFPDF_PAGEOBJ_FORMÚget_objects)r   rŸ   r    r¡   r“   r…   Úcount_objectsÚ
get_objectr   Ú	n_objectsÚiÚraw_objÚ
helper_objs   &&&&&&       r   r©   ÚPdfPage.get_objects  s  é € ÷$ Ü$×=Ñ=ˆMÜ!×7Ñ7ˆJØ‰Fä$×:Ñ:ˆMÜ!×4Ñ4ˆJØˆFß˜HŸM™M°Ó5Ü Ð!SÓTÐTá! &Ó)ˆ	Ø�qŒ=ÜÐDÓEÐEä�yÖ!ˆAá  Ó+ˆGßÜ!Ð"=Ó>Ð>ô # 7¸4¿8¹8ÈtÐksÔtˆJß˜ZŸ_™_°Ô6Ø Ò à�‰¤(×"<Ñ"<Ö<ÀÐSTÍÖATØ×+Ñ+Ø#Ø )Ø%Ø! A�IØ'ð ,ó ÷ ò ó "ñùs%   ‚AE	ÁB0E	Ä
E	Ä E	Ä<EÄ=E	c                ó¬   € V P                   '       g   \        R4      h\        P                  ! W4      pV\        P                  8X  d   \        R4      hV# )a+  
Flatten form fields and annotations into page contents.

Attention:
    * :meth:`~.PdfDocument.init_forms` must have been called on the parent pdf, before the page was retrieved, for this method to work. In other words, :attr:`.PdfPage.formenv` must be non-null.
    * Flattening may invalidate existing handles to the page, so you'll want to re-initialize these afterwards.

Parameters:
    flag (int): PDFium flattening target (:attr:`FLAT_*`)
Returns:
    int: PDFium flattening status (:attr:`FLATTEN_*`). :attr:`FLATTEN_FAIL` is handled internally.
zFpage.flatten() requires prior pdf.init_forms(), before page retrieval.z,Failed to flatten annotations / form fields.)r   ÚRuntimeErrorr   ÚFPDFPage_FlattenÚFLATTEN_FAILr   )r   ÚflagÚrcs   && r   ÚflattenÚPdfPage.flattenI  sH   € ð �|�|ˆ|ÜÐgÓhÐhÜ×&Ò& tÓ2ˆØ”×&Ñ&Ô&ÜÐLÓMÐMØˆ	r   Fc                ó&  € \         P                  ! V P                  4       V,          4      p	\         P                  ! V P                  4       V,          4      p
VR	9   d   Y©r©V Uu. uF  p\         P                  ! W±,          4      NK!  	  ppW“^ ,          ,
          V^,          ,
          pW£^,          ,
          V^,          ,
          p\        ;QJ d    R WÍ3 4       F  '       g   K   RM	  RM! R WÍ3 4       4      '       d   \        R4      h\        V 3/ VB w  rïppVe    V'       d   V\        P                  ,          pV! WÍWïR7      pVP                  V^ ^ WÍ4       V^ ,          ) V^,          ) Wš\        P                  V,          3pVV .VOVN5pVf   \        P                  ! V!   M‰\        P                  ! ^R7      p\        P                  ! VRR 4       VP                  V4      p\        P                   ! . VOVNVN5!  pV\        P"                  8X  g   Q h\        P$                  ! V 4       V'       d5   V P&                  '       d#   \        P(                  ! V P&                  .VO5!   \*        P,                  ! V 4      V3Vn        V# u upi )
a   
Rasterize the page to a :class:`.PdfBitmap`.

Parameters:
    
    scale (float):
        A factor scaling the number of pixels per PDF canvas unit. This defines the resolution of the image.
        To convert a DPI value to a scale factor, multiply it by the size of 1 canvas unit in inches (usually 1/72in). [#user_unit]_
    
    rotation (int):
        Additional rotation in degrees (0, 90, 180, or 270).
    
    crop (tuple[float, float, float, float]):
        Amount in PDF canvas units to cut off from page borders (left, bottom, right, top). Crop is applied after rotation.
    
    may_draw_forms (bool):
        If True, render form fields (provided the document has forms and :meth:`~.PdfDocument.init_forms` was called).
    
    bitmap_maker (typing.Callable):
        Callback function used to create the :class:`.PdfBitmap`.
    
    fill_color (tuple[int, int, int, int]):
        Color the bitmap will be filled with before rendering. This uses RGBA syntax regardless of the pixel format used, with values from 0 to 255.
        If the fill color is not opaque (i.e. has transparency), ``{BGR,RGB}A`` will be used.
    
    grayscale (bool):
        If True, render in grayscale mode.
    
    optimize_mode (None | str):
        Page rendering optimization mode (None, "lcd", "print").
    
    draw_annots (bool):
        If True, render page annotations.
    
    no_smoothtext (bool):
        If True, disable text anti-aliasing. Overrides ``optimize_mode="lcd"``.
    
    no_smoothimage (bool):
        If True, disable image anti-aliasing.
    
    no_smoothpath (bool):
        If True, disable path anti-aliasing.
    
    force_halftone (bool):
        If True, always use halftone for image stretching.
    
    limit_image_cache (bool):
        If True, limit image cache size.
    
    rev_byteorder (bool):
        If True, render with reverse byte order, leading to ``RGB{A/x}`` output rather than ``BGR{A/x}``.
        Other pixel formats are not affected.
    
    prefer_bgrx (bool):
        If True, use 4-byte ``{BGR/RGB}x`` rather than 3-byte ``{BGR/RGB}`` (i.e. add an unused byte).
        Other pixel formats are not affected.
    
    maybe_alpha (bool):
        If True, use a pixel format with alpha channel (i.e. ``{BGR/RGB}A``) if page content has transparency.
        This is recommended for performance in these cases, but as page-dependent format selection can be unexpected, it is not enabled by default.
    
    force_bitmap_format (int | None):
        If given, override automatic pixel format selection and enforce use of the given format (one of the :attr:`FPDFBitmap_*` constants). In this case, you should not pass any other format selection options, except potentially *rev_byteorder*.
    
    extra_flags (int):
        Additional PDFium rendering flags. May be combined with bitwise OR (``|`` operator).
    
    color_scheme (PdfColorScheme | None):
        A custom pdfium color scheme. Note that this may flatten different colors into one, so the usability of this is limited.
    
    fill_to_stroke (bool):
        If a *color_scheme* is given, whether to only draw borders around fill areas using the `path_stroke` color, instead of filling with the `path_fill` color.

Returns:
    PdfBitmap: Bitmap of the rendered page.

.. admonition:: Format selection
    
    This is the format selection hierarchy used by :meth:`.render`, from lowest to highest priority:
    
    * default: ``BGR``
    * ``prefer_bgrx=True``: ``BGRx``
    * ``grayscale=True``: ``L``
    * ``maybe_alpha=True``: ``BGRA`` if the page has transparency, else the format selected otherwise
    * ``fill_color[3] < 255``: ``BGRA`` (background color with transparency)
    * ``force_bitmap_format=...`` -> any supported by pdfium
    
    Additionally, ``rev_byteorder=True`` will swap ``BGR{A/x}`` to ``RGB{A/x}`` if applicable.

.. [#user_unit] Since PDF 1.6, pages may define an additional user unit factor. In this case, 1 canvas unit is equivalent to ``user_unit * (1/72)`` inches. PDFium does not currently provide an API to get the user unit, so this is not taken into account.
c              3   ó*   "  € T F	  q^8  x € K  	  R# 5i)é   NrI   )Ú.0Úds   & r   Ú	<genexpr>Ú!PdfPage.render.<locals>.<genexpr>Ò  s   é € Ð.™o˜�1Žu›oùs   ‚TFzCrop exceeds page dimensions)ÚformatÚrev_byteorder)ÚversionÚNeedToPauseNowc                 ó   € R # )FrI   )Ú_s   &r   rJ   Ú PdfPage.render.<locals>.<lambda>ã  s   € ÁUr   )éZ   i  )ÚmathÚceilr"   r&   ÚanyrŠ   Ú_parse_renderoptsr   ÚFPDF_CONVERT_FILL_TO_STROKEÚ	fill_rectr.   r5   ÚFPDF_RenderPageBitmapÚIFSDK_PAUSEÚset_callbackÚconvertÚ*FPDF_RenderPageBitmapWithColorScheme_StartÚFPDF_RENDER_DONEÚFPDF_RenderPage_Closer   ÚFPDF_FFLDrawÚweakrefÚrefÚ_render_args)r   Úscaler6   ÚcropÚmay_draw_formsÚbitmap_makerÚcolor_schemeÚfill_to_strokeÚkwargsÚ	src_widthÚ
src_heightÚcÚwidthÚheightÚ	cl_formatrÁ   Ú
fill_colorÚflagsÚbitmapÚpos_argsÚrender_argsÚpauseÚfpdf_csÚstatuss   &&&&&&&&,               r   ÚrenderÚPdfPage.renderc  s  € ôN —Y’Y˜tŸ~™~Ó/°5Õ8Ó9ˆ	Ü—Y’Y˜tŸ™Ó0°5Õ8Ó9ˆ
Ø�yÔ Ø$.�zá,0Ó1©D q”—	’	˜!�'Ö"©DˆÐ1Ø 1�gÕ%¨¨Q­Õ/ˆØ 1�gÕ%¨¨Q­Õ/ˆß‹3Ñ.˜u™oÓ.�3�3Š3Ñ.˜u™oÓ.×.Ò.ÜÐ;Ó<Ð<ä6GÈÑ6WÐPVÑ6WÑ3ˆ	 *¨eØÒ$¯.Ø”X×9Ñ9Õ9ˆEá˜e°IÔ[ˆØ×Ñ˜ Q¨¨5Ô9à˜!•W�H˜t A�w˜h¨	¼x×?WÑ?WÐX`Õ?aÐbˆØ˜tÐ6 hÐ6°Ñ6ˆàÒÜ×*Ò*¨KÓ8ä×(Ò(°Ô3ˆEÜ×!Ò! %Ð)9¹?ÔKØ"×*Ñ*¨=Ó9ˆGÜ×HÒHÐfÈ+ÐfÐW^ÐfÐ`eÓfˆFØœX×6Ñ6Ô6Ð6Ð6Ü×*Ò*¨4Ô0ç˜dŸlŸl˜lÜ×!Ò! $§,¡,Ð=°Ô=ä&Ÿ{š{¨4Ó0°(Ð;ˆÔØˆùò= 2s   Á$%J)r   r   r   )T)Né   NrH   N)rH   rH   rH   rH   ))Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ústaticmethodr   Úpropertyr   r"   r&   r)   r1   r7   rD   rN   rW   r\   r`   re   ri   rm   rq   ru   ry   r   r†   r�   r˜   rœ   r©   r   ÚFLAT_NORMALDISPLAYr·   r   Ú
new_nativerî   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   Ú__classdict__s   @@r   r   r      sê   ù‡ € ñ
õ<ð ñ%ó ð%ð ñBó ðBò
1ò2ò5ò8òPòBôcò8ô[ò7ô[ò8ôZò7ôYò6ò	>ò
òò4$òBBô3ðl $×6Ñ6ô ð8 ØØØ!Ø$×/Ñ/ØØ"÷Jô Jr   c                 ó  € V^,          ^ÿ8  g%   V'       d-   \         P                  ! V 4      '       d   \         P                  # V'       d   \         P                  # V'       d   \         P                  # \         P
                  # )é   )r   ÚFPDFPage_HasTransparencyÚFPDFBitmap_BGRAÚFPDFBitmap_GrayÚFPDFBitmap_BGRxÚFPDFBitmap_BGR)r‰   ræ   Ú	grayscaleÚprefer_bgrxÚmaybe_alphas   &&&&&r   Ú_auto_bitmap_formatr  ð  sY   € ð �!…}�sÔŸ{¬x×/PÒ/PÐQU×/VÒ/VÜ×'Ñ'Ð'ß	Ü×'Ñ'Ð'ß	Ü×'Ñ'Ð'ä×&Ñ&Ð&r   c                 ó  € Vf   \        WW+V4      pMTpV\        P                  8X  d   Rp
TpV'       d   V\        P                  ,          pV'       d   V\        P                  ,          pV'       d   V\        P
                  ,          pV'       d   V\        P                  ,          pV'       d   V\        P                  ,          pV'       d   V\        P                  ,          pV	'       d   V\        P                  ,          pV
'       d   V\        P                  ,          pV'       d]   VP                  4       pVR8X  d   V\        P                  ,          pM-VR8X  d   V\        P                  ,          pM\        RV 24      hWúVV3# )NFÚlcdÚprintzInvalid optimize_mode )r  r   r  ÚFPDF_GRAYSCALEÚ
FPDF_ANNOTÚFPDF_RENDER_NO_SMOOTHTEXTÚFPDF_RENDER_NO_SMOOTHIMAGEÚFPDF_RENDER_NO_SMOOTHPATHÚFPDF_RENDER_FORCEHALFTONEÚFPDF_RENDER_LIMITEDIMAGECACHEÚFPDF_REVERSE_BYTE_ORDERÚlowerÚFPDF_LCD_TEXTÚFPDF_PRINTINGrŠ   )r‰   ræ   r  Úoptimize_modeÚdraw_annotsÚno_smoothtextÚno_smoothimageÚno_smoothpathÚforce_halftoneÚlimit_image_cacherÁ   r  r  Úforce_bitmap_formatÚextra_flagsrå   rç   s   &&&&&&&&&&&&&&&  r   rË   rË   ý  s1  € ð$ Ò"Ü'¨¸)ÐR]Ó^‰	à'ˆ	à”H×,Ñ,Ô,Øˆà€EßØ”×(Ñ(Õ(ˆßØ”×$Ñ$Õ$ˆßØ”×3Ñ3Õ3ˆßØ”×4Ñ4Õ4ˆßØ”×3Ñ3Õ3ˆßØ”×3Ñ3Õ3ˆßØ”×7Ñ7Õ7ˆßØ”×1Ñ1Õ1ˆçØ%×+Ñ+Ó-ˆØ˜EÔ!Ø”X×+Ñ+Õ+‰EØ˜gÔ%Ø”X×+Ñ+Õ+‰EäÐ5°m°_ÐEÓFÐFð  Z°Ð6Ð6r   c                   ó6   a € ] tR tRt o RtR tR tR tRtV t	R# )r   i6  z�
Rendering color scheme.
Each color shall be provided as a list of values for red, green, blue and alpha, ranging from 0 to 255.
c                ó*   € \        WW4R 7      V n        R# ))Úpath_fill_colorÚpath_stroke_colorÚtext_fill_colorÚtext_stroke_colorN)ÚdictÚcolors)r   Ú	path_fillÚpath_strokeÚ	text_fillÚtext_strokes   &&&&&r   r   ÚPdfColorScheme.__init__<  s   € ÜØ%Ø%ô
ˆŽr   c                óL   € \        V 4      P                   R V P                   R2# )z(**Ú))r§   rñ   r'  r   s   &r   Ú__repr__ÚPdfColorScheme.__repr__B  s$   € Ü�t“*×%Ñ%Ð& c¨$¯+©+¨°aÐ8Ð8r   c           	     ó¶   € \         P                  ! 4       pV P                  P                  4        F%  w  r4\	        W#\
        P                  ! WA4      4       K'  	  V# )zD
Returns:
    The color scheme as :class:`FPDF_COLORSCHEME` object.
)r   ÚFPDF_COLORSCHEMEr'  ÚitemsÚsetattrr.   Úcolor_tohex)r   rÁ   rì   Úkeyr;   s   &&   r   rÑ   ÚPdfColorScheme.convertE  sE   € ô
 ×+Ò+Ó-ˆØŸ+™+×+Ñ+Ö-‰JˆCÜ�G¤(×"6Ò"6°uÓ"LÖMñ .àˆr   )r'  N)
rñ   rò   ró   rô   rõ   r   r/  rÑ   rú   rû   )rý   s   @r   r   r   6  s   ø‡ € ñò

ò9÷ð r   )r   r   ))éÿ   r8  r8  r8  FNTFFFFFFFFNrH   )Ú__all__rÈ   ÚctypesÚloggingrÖ   Úpypdfium2.rawr   r   Úpypdfium2.internalÚinternalr.   Úpypdfium2._helpers.miscr   Úpypdfium2._helpers.bitmapr   Úpypdfium2._helpers.textpager   Úpypdfium2._helpers.pageobjectsr   Úpypdfium2.versionr   r:   Ú	getLoggerrñ   ÚloggerÚAutoCloseabler   r  rË   r   rI   r   r   Ú<module>rG     sp   ðð (€ã Û Û Û Ý  Ý %Ý /Ý /Ý 3Ý 4Ý )à
�.‰.€Ø	×	Ò	˜8Ó	$€ôWˆx×%Ñ%ô Wòt
'ô67÷ró r   