Ë
    ul�j”  ã                   óâ   — d dl Z d dlZd dlmZ d dlmZ d dlmZmZ d dl	m
Z
  ee«      Z G d„ d«      Z e«       Zdd	d
ddddddddddœZd„ Ze j                   dd fd„Zd„ Zedk(  r e«        yy)é    N)Úbasename)Úimport_module)Úcached_propertyÚkeydefaultdict)Úsetup_loggingc                   ó   — e Zd Zed„ «       Zy)Ú_LocalLazyClassc                 óN   — ddl m}m} ddlm} d|› d|› d|d   j
                  › �S )Nr   )ÚPYPDFIUM_INFOÚPDFIUM_INFO)Ú_libsz
pypdfium2 z
pdfium z at Úpdfium)Úpypdfium2.versionr   r   Úpypdfium2_raw.bindingsr   Ú_name)Úselfr   r   r   s       úL/var/www/html/pp/venv/lib/python3.12/site-packages/pypdfium2_cli/__main__.pyÚversion_strz_LocalLazyClass.version_str   s,   € ç@Ý0Ø˜M˜?¨)°K°=ÀÀUÈ8Á_×EZÑEZÐD[Ð\Ð\ó    N)Ú__name__Ú
__module__Ú__qualname__r   r   © r   r   r	   r	      s   „ Øñ]ó ñ]r   r	   zRearrange/merge documentsz List/extract/edit embedded fileszExtract imageszExtract textzConvert images to PDFzPrint info on pageobjectsz Print info on document and pageszList a document's fontszDump info about default fontszRasterize pageszTile pages (N-up)zPrint table of contents)ÚarrangeÚattachmentszextract-imageszextract-textÚimgtopdfÚpageobjectsÚpdfinfoÚfontszdefault-fontsÚrenderÚtileÚtocc           
      óž  — t        j                  dt         j                  dt        t	        t
        j                  «      ¬«      z  ¬«      }|j                  dddt        j                  ¬«       |j                  d	¬
«      }d }| xr | d   xs d }t        j                  «       }|t        v ru||= t        d|j                  dd«      › �   }t        |   }t        |dd «      }|r|dz   |z   n|}|j!                  |||t         j                  ¬«      }|j#                  |«       |j%                  «       D ]  \  }	}|j!                  |	|¬«       Œ ||fS )NÚ	pypdfium2a  pypdfium2 is a Python binding to PDFium, a PDF processing library.
This is the command-line interface. Invoke as `pypdfium2` or `%(py_exe)s -m pypdfium2_cli`.

pypdfium2's CLI mainly serves testing purposes, similar to pdfium_test upstream.
It is not meant as a feature-complete PDF toolkit for end users.
There are no API stability promises; backward incompatible changes may be made.

Environment variables:
- PYPDFIUM_LOGLEVEL {debug,info,warning,error,critical} = debug
  Controls the logging level.
- DEBUG_AUTOCLOSE {debug,warning,critical} = warning
  How much info to print about (auto-)closing of PDFium objects.
- DEBUG_UNSUPPORTED {0,1} = 1
  Whether to enable or disable the unsupported feature handler.
- DEBUG_SYSFONTS {0,1} = 0
  Whether to install a sysfont listener.)Úpy_exe)ÚprogÚformatter_classÚdescriptionz-vz	--versionÚversion)Úactionr)   Ú
subcommand)Údestr   zpypdfium2_cli.ú-Ú_ÚPARSER_DESCz

)Úhelpr(   r'   )r0   )ÚargparseÚArgumentParserÚRawTextHelpFormatterÚdictr   ÚsysÚ
executableÚadd_argumentÚ	LocalLazyr   Úadd_subparsersÚSubCommandsÚcopyÚModuleLoaderÚreplaceÚgetattrÚ
add_parserÚattachÚitems)
ÚargvÚmain_parserÚ
subparsersÚmodÚsc_nameÚ	other_scsr0   ÚdescÚ	subparserÚnames
             r   Ú
get_parserrK   )   s`  € ä×)Ñ)ØÜ"×7Ñ7ðô" ”(œ3Ÿ>™>Ó*Ô+ñ#,ô€Kð, ×ÑØˆkØÜ×'Ñ'ð ô ð
 ×+Ñ+°Ð+Ó>€Jà
€CØÒ˜˜Q™Ò( D€GÜ× Ñ Ó"€Ià”+ÑØ�gÐÜ˜^¨G¯O©O¸CÀÓ,EÐ+FÐGÑHˆÜ˜7Ñ#ˆÜ�s˜M¨4Ó0ˆÙ)-��v‘ Ò$°4ˆØ×)Ñ)Ø˜$¨DÜ$×9Ñ9ð *ó 
ˆ	ð 	�
‰
�9Ôà—o‘oÓ'ò /‰
ˆˆdØ×Ñ˜d¨ÐÕ.ð/ð ˜ÐÐr   é   c                 óž   — t        | «      \  }}|j                  | «      }|j                  s|j                  «        y |j	                  |«       y ©N)rK   Ú
parse_argsr+   Ú
print_helpÚmain)rB   ÚparserrE   Úargss       r   Úapi_mainrT   ^   sA   € ä˜TÓ"�K€FˆCØ×Ñ˜TÓ"€Dà�?Š?Ø×ÑÔØà‡H�HˆT…Nr   c                  ó,   — t        «        t        «        y rN   )r   rT   r   r   r   Úcli_mainrV   j   s   € Ü„OÜ…Jr   Ú__main__)r5   r1   Úos.pathr   Ú	importlibr   Úpypdfium2_cfg.stlr   r   Úpypdfium2_cli._setupr   r<   r	   r8   r:   rK   rB   rT   rV   r   r   r   r   ú<module>r\      s™   ðó Û Ý Ý #ß =Ý .á˜mÓ,€÷]ñ ]ñ Ó€	ð 2Ø8Ø&Ø$Ø-Ø1Ø8Ø/Ø5Ø'Ø)Ø/ñ€ò 2ðj —(‘(˜1˜2�,ó 	òð
 ˆzÒÙ…Jð r   