
    Ng                         d dl Z d dlZd dlZd dlmZmZ d dlmZ d dlm	Z	 e	d         d         Z
ddd	d
ddddddd
Zd eD             Zd Ze j        dd         fdZd Zedk    r e             dS dS )    N)PYPDFIUM_INFOPDFIUM_INFO)setup_logging)
_libs_infopdfiumpathzrearrange/merge documentsz list/extract/edit embedded fileszextract imageszextract textzconvert images to PDFzprint info on page objectsz print info on document and pageszrasterize pagesztile pages (N-up)zprint table of contents)
arrangeattachmentszextract-imageszextract-textimgtopdfpageobjectspdfinforendertiletocc           
      f    i | ].}|t          j        d |                    dd                     /S )zpypdfium2._cli.-_)	importlibimport_modulereplace).0ns     N/var/www/html/ai-engine/env/lib/python3.11/site-packages/pypdfium2/__main__.py
<dictcomp>r      s=    hhhWXq))*QAIIc3<O<O*Q*QRRhhh    c                     t          j        dt           j        d          } |                     ddddt           dt
           d	t           
           |                     d          }t          	                                D ]=\  }}|
                    |||          }t          |                             |           >| S )N	pypdfium2zJCommand line interface to the pypdfium2 library (Python binding to PDFium))progformatter_classdescriptionz	--versionz-vversionz
pypdfium2 z
pdfium z at )actionr!   
subcommand)dest)r    help)argparseArgumentParserRawTextHelpFormatteradd_argumentr   r   pdfium_pathadd_subparsersSubCommandsitems
add_parserCmdToModuleattach)main_parser
subparsersnamer%   	subparsers        r   
get_parserr5      s    )"7b  K
 TY}YY;YYKYY    
 +++>>J!'')) , ,
d))$Dt)LL	D  ++++r      c                     t                      }|                    |           }|j        s|                                 d S t          |j                                     |           d S N)r5   
parse_argsr#   
print_helpr/   main)raw_argsparserargss      r   api_mainr?   2   s`    \\FX&&D?  %%d+++++r   c                  >    t                       t                       d S r8   )r   r?    r   r   cli_mainrB   >   s    OOOJJJJJr   __main__)sysr&   r   pypdfium2.versionr   r   pypdfium2._cli._parsersr   pypdfium2_raw.bindingsr   r*   r,   r/   r5   argvr?   rB   __name__rA   r   r   <module>rJ      s   


      8 8 8 8 8 8 8 8 1 1 1 1 1 1 - - - - - -"6* 28&$-28')/  ih\ghhh  * hqrrl 	, 	, 	, 	,  
 zHJJJJJ r   