
    h                     (    S SK Jr  S SKJr  S rS rg)    N)parse_numtextc                     U R                  SSSS9  U R                  SS/ SS9  U R                  SS/ S	S9  U R                  S
SSSS9  g )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    N/var/www/html/shao/venv/lib/python3.13/site-packages/pypdfium2/_cli/arrange.pyattachr   	   s    
'  
 z	   m	   D4      c                 
   U R                    Vs/ sH  oS:X  a  S O
[        U5      PM     snU l         [        [        U R                  5      [        U R                   5      -
  5       H  nU R                   R                  S 5        M      [        [        U R                  5      [        U R                  5      -
  5       H  nU R                  R                  S 5        M      [        R                  R                  5       nSn[        U R                  U R                   U R                  5       H7  u  pVn[        R                  " XWS9nUR                  XS9  U[        U5      -  nM9     UR                  U R                  5        g s  snf )N_r   )password)pages)r   r   rangelenr   append	passwordspdfiumPdfDocumentnewzipimport_pagessaveoutput)	argspr   dest_pdfindexin_pathr   r   src_pdfs	            r   mainr%   "   s    BF**M*Qs($a(88*MDJ3t{{#c$**o56

$ 73t{{#c$..&99:d# ; !!%%'HE$'TZZ$P $$W@g3W %Q
 MM$++ Ns   F )pypdfium2._helpers_helpersr   pypdfium2._cli._parsersr   r   r%    r   r   <module>r*      s    $ 12r   