
    li                         d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ  G d d      Z	 e	       Z
d Ze j                  dd fd	Zd
 Zedk(  r e        yy)    N)basename)cached_property)setup_loggingc                       e Zd Zed        Zy)
_InitClassc                     ddl mama ddlma dddddd	d
dddd
at
        D ci c]+  }|t        j                  d|j                  dd             - c}a	y c c}w )Nr   )PYPDFIUM_INFOPDFIUM_INFO)_libsz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Rasterize pageszTile pages (N-up)zPrint table of contents)
arrangeattachmentszextract-imageszextract-textimgtopdfpageobjectspdfinforendertiletoczpypdfium2_cli.-_)
pypdfium2.versionr	   r
   pypdfium2_raw.bindingsr   SubCommands	importlibimport_modulereplaceCmdToModule)selfns     S/app/cer_product_mecsu/.venv/lib/python3.12/site-packages/pypdfium2_cli/__main__.pyimportsz_InitClass.imports   sn     	A0 :@.,59@/17
 doo^_q)11N199SRUCVBW2XYYoos   0AN)__name__
__module____qualname__r   r         r   r   r      s    p pr%   r   c                     t        j                  dt         j                  dt        t	        t
        j                              z        } | j                  ddddt         d	t         d
t        d   j                          | j                  d      }t        j                         D ][  \  }}t        |   }t!        |dd       }|r|dz   |z   n|}|j#                  |||t         j                        }|j%                  |       ] | S )N	pypdfium2a  Command line interface to the pypdfium2 library (Python binding to PDFium)
Invoke as `pypdfium2` or `%(py_exe)s -m pypdfium2_cli`

Environment variables:
- PYPDFIUM_LOGLEVEL {debug,info,warning,error,critical} = debug
  Controls the logging level.
- DEBUG_AUTOCLOSE {0,1} = 0
  Print debug info when PDFium objects are (auto-)closed.
- 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	--versionz-vversionz
pypdfium2 z
pdfium z at pdfium)actionr,   
subcommand)destPARSER_DESCz

)helpr+   r*   )argparseArgumentParserRawTextHelpFormatterdictr   sys
executableadd_argumentr	   r
   r   _nameadd_subparsersr   itemsr   getattr
add_parserattach)main_parser
subparsersnamer2   moddesc	subparsers          r   
get_parserrF   %   s   ))"77 (3>>*+,K$ T}o];-tERZOLaLaKbc  
 +++>J!'') 
d$sM40)-v$4))t$99 * 
	 	

9 r%      c                     t         j                   t               }|j                  |       }|j                  s|j                          y t        |j                     j                  |       y N)initr    rF   
parse_argsr/   
print_helpr   main)raw_argsparserargss      r   api_mainrQ   M   sM    LL\FX&D?? %%d+r%   c                  ,    t                t                y rI   )r   rQ   r$   r%   r   cli_mainrS   Z   s    OJr%   __main__)r7   r3   r   os.pathr   pypdfium2._lazyr   pypdfium2_cli._setupr   r   rJ   rF   argvrQ   rS   r!   r$   r%   r   <module>rY      sa        + .p p. |%P hhqrl 
,
 zJ r%   