
    )i                     (    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    V/var/www/html/land-doc-ocr/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[        U R                  U R                   U R                  5       H2  u  pEn[        R                  " XFS9 nUR                  XuS9  S S S 5        M4     UR                  U R                  5        g s  snf ! , (       d  f       Mf  = f)N_)password)pages)r   r   rangelenr   append	passwordspdfiumPdfDocumentnewzipimport_pagessaveoutput)argspr   dest_pdf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$'TZZ$P ;w!!'!7 <; %Q MM$++ N <;s   E:E??
F	)pypdfium2._helpers_helpersr   pypdfium2._cli._parsersr   r   r$    r   r   <module>r)      s    $ 12r   