
    .i                     *    d dl mZ d dlmZ d Zd ZdS )    Nparse_numtextc                     |                      ddd           |                      ddg d           |                      ddg d	           |                      d
ddd           d S )Ninputs+zSequence of PDF files.)nargshelpz--pagesziSequence of page texts, definig the pages to include from each PDF. Use '_' as placeholder for all pages.)r   defaultr	   z--passwordsz\Passwords to unlock encrypted PDFs. Any placeholder may be used for non-encrypted documents.z--outputz-oTz#Target path for the output document)requiredr	   )add_argument)parsers    R/var/www/html/analyses/venv/lib/python3.11/site-packages/pypdfium2/_cli/arrange.pyattachr      s    
'    
 z	     m	     D4          c                    d | j         D             | _         t          t          | j                  t          | j                   z
            D ]}| j                             d            t          t          | j                  t          | j                  z
            D ]}| j                            d            t          j                                        }t          | j        | j         | j                  D ]K\  }}}t          j        ||          5 }|
                    ||           d d d            n# 1 swxY w Y   L|                    | j                   d S )Nc                 <    g | ]}|d k    rdnt          |          S )_Nr   ).0ps     r   
<listcomp>zmain.<locals>.<listcomp>#   s,    MMMQ!s(($$a(8(8MMMr   )password)pages)r   rangelenr   append	passwordspdfiumPdfDocumentnewzipimport_pagessaveoutput)argsr   dest_pdfin_pathr   r   src_pdfs          r   mainr(   !   s   MM$*MMMDJ3t{##c$*oo566    
$3t{##c$.&9&99:: $ $d####!%%''H$'TZ$P$P 8 8 (;;; 	8w!!'!777	8 	8 	8 	8 	8 	8 	8 	8 	8 	8 	8 	8 	8 	8 	8 MM$+s   D;;D?	D?	)pypdfium2._helpers_helpersr   pypdfium2._cli._parsersr   r   r(    r   r   <module>r-      sS    $ # # # # # 1 1 1 1 1 1  2    r   