
    Ei                         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        yy)    N)basename)import_module)setup_loggingkeydefaultdictcached_propertyc                       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       N/home/agent/.friday_env/lib/python3.12/site-packages/pypdfium2_cli/__main__.pyversion_strz_LocalLazyClass.version_str   s,    @0M?)K=U8_EZEZD[\\    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.
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7  (3>>*+!,K* k''  
 +++>J
CQ(DG  "I+g^GOOC,E+FGH7#sM40)-v$4))$D$99 * 
	 	

9oo' /
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"KFCT"D??HHTNr   c                  ,    t                t                y rN   )r   rT   r   r   r   cli_mainrV   j   s    OJr   __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,] ] 	 28&$-18/5')/ 1h ((12, 	
 zJ r   