
    ϔ 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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             dS dS )    N)basename)import_module)setup_loggingkeydefaultdictcached_propertyc                   $    e Zd Zed             ZdS )_LocalLazyClassc                 J    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       jC:\Users\Terasoftware\OneDrive\Desktop\faahhh\fyndo\fyndo\venv\Lib\site-packages\pypdfium2_cli/__main__.pyversion_strz_LocalLazyClass.version_str   sQ    @@@@@@@@000000\M\\K\\U8_EZ\\\    N)__name__
__module____qualname__r   r    r   r   r	   r	      s2        ] ] _] ] ]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            }|                    dddt          j	                   |
                    d	
          }d }| r| d         pd }t                                          }|t          v r||= t          d|                    dd                    }t          |         }t          |dd           }|r|dz   |z   n|}|                    |||t           j                  }|                    |           |                                D ]\  }	}|                    |	|           ||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.
No API stability promises are being 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  (3>**+++!,  K* k'    
 +++>>J
CQ(DG  ""I+ 
gGGOOC,E,EGGH7#sM400)-7v$$4))$D$9 * 
 
	 	

9oo'' / /
dd....r      c                     t          |           \  }}|                    |           }|j        s|                                 d S |                    |           d S N)rK   
parse_argsr+   
print_helpmain)rB   parserrE   argss       r   api_mainrT   ^   sZ    T""KFCT""D? HHTNNNNNr   c                  >    t                       t                       d S rN   )r   rT   r   r   r   cli_mainrV   j   s    OOOJJJJJr   __main__)r5   r1   os.pathr   	importlibr   pypdfium2_cli._setupr   r   r   r<   r	   r8   r:   rK   rB   rT   rV   r   r   r   r   <module>r[      s[   


        # # # # # #          ~m,,] ] ] ] ] ] ] ] O	 28&$-18/5')/  1 1 1h (122, 	 	 	 	  
 z HJJJJJ r   